csnlp.wrappers.PwaRegion#

class csnlp.wrappers.PwaRegion(A, B, c, S, T)[source]#

Bases: object

Stores the matrices defining the i-th region in a piecewise affine system.

Methods

Attributes

A

The state matrix \(A_i\) of the affine dynamics \(x_+ = A_i x + B_i u + c_i\).

B

The input matrix \(B_i\) of the affine dynamics \(x_+ = A_i x + B_i u + c_i\).

c

The affine constant vector \(c_i\) of the affine dynamics \(x_+ = A_i x + B_i u + c_i\).

S

The state matrix \(S_i\) of the region inequality \(S_i [x^\top, u^\top]^\top \leq T_i\)

T

The constant vector \(T_i\) of the region inequality \(S_i x + R_i u \leq T_i\)

A: ndarray[tuple[Any, ...], dtype[floating]]#

The state matrix \(A_i\) of the affine dynamics \(x_+ = A_i x + B_i u + c_i\).

B: ndarray[tuple[Any, ...], dtype[floating]]#

The input matrix \(B_i\) of the affine dynamics \(x_+ = A_i x + B_i u + c_i\).

S: ndarray[tuple[Any, ...], dtype[floating]]#

The state matrix \(S_i\) of the region inequality \(S_i [x^\top, u^\top]^\top \leq T_i\)

T: ndarray[tuple[Any, ...], dtype[floating]]#

The constant vector \(T_i\) of the region inequality \(S_i x + R_i u \leq T_i\)

c: ndarray[tuple[Any, ...], dtype[floating]]#

The affine constant vector \(c_i\) of the affine dynamics \(x_+ = A_i x + B_i u + c_i\).

Examples using csnlp.wrappers.PwaRegion#

MPC controller for PWA systems

MPC controller for PWA systems