set_parameter#

Design.set_parameter(parameter: Parameter | DesignVariable, reset_output: bool = True) None#

Set the value of a parameter by instance or add a new parameter.

If no instance is specified, a new parameter is added.

Parameters:
parameter: Union[Parameter, DesignVariable]

Instance of the Parameter or DesignVariable class.

reset_output: bool, optional

Whether to reset the status and feasibility and then delete the output values. The default is True.

Raises:
OslCommunicationError

Raised when an error occurs while communicating with the server.

OslCommandError

Raised when a command or query fails.

TimeoutError

Raised when the timeout float value expires.

TypeError

Raised when an invalid type of parameter is passed.