interfaceMathsToPhysics

Module Contents

class InterfaceMathsToPhysics[source]

Interface to transform output from the optimizer to meaningful variables of the device

abstract fromMathsToPhys(self, xVector, theDevice, opti_variables)[source]

Transforms an input vector coming from the optimization (e.g. [0.23, 4, False]) to “meaningful” variable (ex: length, number of poles, flag).

Parameters
  • xVector – List of optimization variables from the optimizer

  • theDeviceInterfaceDevice

  • opti_variables – list of OptimizationVariable

abstract fromPhysToMaths(self, theDevice, opti_variables)[source]

Extracts a mathematical vector from meaningful variable of the Device

Parameters
  • theDeviceInterfaceDevice

  • opti_variables – list of OptimizationVariable

Returns

List of optimization variables