compute

buzz.compute

Functions

calcFullResults(results_list[, io_scales])

calcOpt(SPOFF, control_in, wn_in, meas_out, ...)

_summary_

color_map_color(value[, cmap_name, vmin, ...])

connectK(bunch)

connectKOL(bunch)

getK_Usable(K, SPOFF_full[, plant_orig])

Uses the original plant to get the real usable controller.

sfround(x, sig)

Round a number to a certain number of significant figures.

Details

calcFullResults(results_list, io_scales=Bunch(), **kwargs)[source]
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:

list

color_map_color(value, cmap_name='winter', vmin=0, vmax=1, lognorm=False, outside_color='lightgrey')[source]
connectK(bunch)[source]
connectKOL(bunch)[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

sfround(x, sig)[source]

Round a number to a certain number of significant figures.

Parameters:
  • x (float) – The number to round.

  • sig (int) – The number of significant figures to round to.

Returns:

The rounded number.

Return type:

x_round (float)