Squared Constraint
- class gym_electric_motor.constraints.SquaredConstraint(states=())[source]
A squared constraint on multiple states as it is required oftentimes for the dq-currents in synchronous and asynchronous electric motors.
\[1.0 <= \sum_{i \in S} (s_i / s_{i,max})^2\]\(S\): Set of the observed PhysicalSystems states
- Parameters:
states (iterable(str)) – Names of all states to be observed within the SquaredConstraint.
- set_modules(ps)[source]
Called by the environment that the Constraint can read information from the PhysicalSystem.
- Parameters:
ps (PhysicalSystem) – PhysicalSystem of the environment.