optiVariable

Module Contents

Classes

class OptimizationVariable(attributeName)[source]

Contains information about the optimization of a variable

get_attribute_name()[source]

Return the attribute to set

add_prefix_attribute_name(thePrefix)[source]

Used for nested object, lower the name by prefix. Example: R_ext becomes (thePrefix).R_ext

get_PhysToMaths(deviceIn)[source]

Convert the initial value of the variable contained in the device to optimization variable value

Parameters:deviceInInterfaceDevice
Returns:value of the corresponding optimization variable
do_MathsToPhys(variableValue, deviceIn)[source]

Apply the value to the device

__str__()[source]

Return str(self).

class Real_OptimizationVariable(attributeName, val_min, val_max)[source]

Bases: OptimizationVariable

Real (continuous) optimization variable. Most used type

get_min_value()[source]
get_max_value()[source]
get_PhysToMaths(deviceIn)[source]

Convert the initial value of the variable contained in the device to optimization variable value

Parameters:deviceInInterfaceDevice
Returns:value of the corresponding optimization variable
do_MathsToPhys(value, deviceIn)[source]

Apply the value to the device

__str__()[source]

Return str(self).

class Binary_OptimizationVariable(attributeName)[source]

Bases: OptimizationVariable

Boolean (True/False) optimization variable.

get_PhysToMaths(deviceIn)[source]

Convert the initial value of the variable contained in the device to optimization variable value

Parameters:deviceInInterfaceDevice
Returns:value of the corresponding optimization variable
do_MathsToPhys(value, deviceIn)[source]

Apply the value to the device

__str__()[source]

Return str(self).

class Integer_OptimizationVariable(attributeName, val_min, val_max)[source]

Bases: OptimizationVariable

Integer variable, in [min_value, max_value]

get_min_value()[source]
get_max_value()[source]
get_PhysToMaths(deviceIn)[source]

Convert the initial value of the variable contained in the device to optimization variable value

Parameters:deviceInInterfaceDevice
Returns:value of the corresponding optimization variable
do_MathsToPhys(value, deviceIn)[source]

Apply the value to the device

__str__()[source]

Return str(self).