real_optimizable_pwc_signal

Graph.real_optimizable_pwc_signal(segment_count, duration, maximum, minimum=0.0, initial_values=None, *, name=None)

Create a real optimizable piecewise-constant signal.

Parameters

  • segment_count (int) – The number of piecewise-constant segments in the signal.
  • duration (float) – The duration of the signal.
  • maximum (float) – The upper bound for the signal values.
  • minimum (float , optional) – The lower bound for the signal values. Defaults to 0.
  • initial_values (np.ndarray or list [ np.ndarray ] or None , optional) – Initial values for the signal. You can either provide a single array, or a list of them. If a list of arrays is used, they must have the same length. Defaults to None, meaning the optimizer initializes the variables with random values.
  • name (str or None , optional) – The name of the node.

Returns

The optimizable piecewise-constant signal.

Return type

Pwc

SEE ALSO

Graph.complex_optimizable_pwc_signal : Create a complex optimizable Pwc signal.

Graph.optimization_variable : Create optimization variables, which can be bounded, semi-bounded, or unbounded.

Graph.pwc_signal : Create a piecewise-constant signal.

Was this useful?