wecopttool.WEC.decompose_state

WEC.decompose_state(state)[source]

Split the state vector into the WEC dynamics state and the optimization (control) state.

Calls wecopttool.decompose_state() with the appropriate inputs for the WEC object.

Examples

>>> x_wec, x_opt = wec.decompose_state(x)
Parameters:

state (ndarray) – Combined WEC and optimization states.

Returns:

  • state_wec – WEC state vector.

  • state_opt – Optimization (control) state.

Return type:

tuple[ndarray, ndarray]

See also

decompose_state