compute¶
buzz.compute
Functions
|
|
|
_summary_ |
|
|
|
|
|
|
|
Uses the original plant to get the real usable controller. |
|
Round a number to a certain number of significant figures. |
Details
- calcOpt(SPOFF, control_in, wn_in, meas_out, FOM_out, params, Zinf=None, solver='LQG', plant_orig=None, H2_solver=None, BH_solver=None, BH_kw={}, debug_mode=False, **kwargs)[source]¶
_summary_
- Parameters:
SPOFF (wield.MIMO) – a MIMO system object to be controlled. This system can be assembled by using the made using the
control_in (list) – _description_
wn_in (list) – _description_
meas_out (list) – _description_
FOM_out (list) – _description_
params (dict) – _description_
Zinf (list, optional) – _description_. Defaults to None.
solver (str, optional) – _description_. Defaults to ‘LQG’.
plant_orig (wield.SISO, optional) – The original plant of the system. Adds the real useable controller to the results as K = K’P’/P. This is only needed if the plant was modified in when making the original SPOFF. Defaults to None.
- Returns:
list of wield.Bunch objects containing the results of the optimal controller calculation. each item in the list is a new controller.
- Return type:
- color_map_color(value, cmap_name='winter', vmin=0, vmax=1, lognorm=False, outside_color='lightgrey')[source]¶
- getK_Usable(K, SPOFF_full, plant_orig=None)[source]¶
Uses the original plant to get the real usable controller. This is only needed if the plant was modified in when making the original SPOFF
- Parameters:
K (wield MIMO) – _description_
SPOFF_full (wield MIMO) – _description_
plant_orig (wield MIMO, optional) – _description_. Defaults to None.
- Returns:
The controller that is useable in the real system. This is only needed if the plant was modified in when making the original SPOFF K_Usable_zpk: K_Usable in ZPK form.
- Return type:
K_Usable