Stateestimation¶
-
class
mpcpy.Stateestimation(emulator, parameters=None)[source]¶ Base class for defining the state estimation for an mpc the “stateestimation” method must be redefined in a child class.
Parameters: emulator : mpcpy.Emulator
An
mpcpy.Emulatorobject from which the state should be estimated.parameters : dict, optional
Optional parameter dictionary.
-
__call__(time)[source]¶ Returns the state at a given time as computed by the
stateestimationmethod.Parameters: time : number
The time at which the state should be estimated.
Returns: dict
A dictionary with key-value pairs representing the state.
-
stateestimation(time)[source]¶ Must be redefined in a child class to return a dictionary with the estimated state at the specified time as required by the control object.
Parameters: time : number
The time at which the state should be estimated.
Returns: dict
A dictionary with key-value pairs representing the state.
-