LmiExpr::LmiExpr()

Default constructor of a LMI expression.

Synopsis

LmiExpr()

LmiExpr::LmiExpr()

Constructor of LMI expression with given symmetric matrix.

Synopsis

LmiExpr(const SymMatrix &mat)

Arguments

mat: symmetric matrix as constant term of LMI expression.

LmiExpr::LmiExpr()

Constructor of LMI expression with given matrix expression.

Synopsis

LmiExpr(const SymMatExpr &expr)

Arguments

expr: matrix expression as constant term of LMI expression.

LmiExpr::LmiExpr()

Constructor of LMI expression with one term.

Synopsis

LmiExpr(const Var &var, const SymMatrix &mat)

Arguments

var: variable of the added term.

mat: coefficient matrix of the added term.

LmiExpr::LmiExpr()

Constructor of LMI expression with one term.

Synopsis

LmiExpr(const Var &var, const SymMatExpr &expr)

Arguments

var: variable of the added term.

expr: coefficient expression of symmetric matrices for the added term.

LmiExpr::AddConstant()

Add to constant term of LMI expression.

Synopsis

void AddConstant(const SymMatExpr &expr)

Arguments

expr: matrix expression object added to constant term.

LmiExpr::AddLmiExpr()

Add a LMI expression to self.

Synopsis

void AddLmiExpr(const LmiExpr &expr, double mult)

Arguments

expr: LMI expression to be added.

mult: optional, constant multiplier, default value is 1.0.

LmiExpr::AddTerm()

Add a term to LMI expression.

Synopsis

void AddTerm(const Var &var, const SymMatrix &mat)

Arguments

var: variable of new LMI term.

mat: coefficient matrix object of new LMI term.

LmiExpr::AddTerm()

Add a term to LMI expression.

Synopsis

void AddTerm(const Var &var, const SymMatExpr &expr)

Arguments

var: variable of new LMI term.

expr: coefficient expression object of symmetric matrices of new LMI term.

LmiExpr::AddTerms()

Add LMI terms to LMI expression.

Synopsis

int AddTerms(const VarArray &vars, const SymMatrixArray &mats)

Arguments

vars: variables of added LMI terms.

mats: coefficient matrix objects for added LMI terms.

Return

number of added LMI terms.

LmiExpr::Clone()

Deep copy LMI expression.

Synopsis

LmiExpr Clone()

Return

cloned LMI expression object.

LmiExpr::GetCoeff()

Get coefficient from the i-th term in LMI expression.

Synopsis

SymMatExpr &GetCoeff(int i)

Arguments

i: index of the LMI term.

Return

coefficient matrix expression object of the i-th LMI term in LMI expression.

LmiExpr::GetConstant()

Get constant term in LMI expression.

Synopsis

SymMatExpr &GetConstant()

Return

matrix expression object in LMI expression.

LmiExpr::GetVar()

Get variable from the i-th term in LMI expression.

Synopsis

Var &GetVar(int i)

Arguments

i: index of the term.

Return

variable of the i-th term in LMI expression object.

LmiExpr::operator*=()

Multiply a double constant to self.

Synopsis

void operator*=(double c)

Arguments

c: constant multiplier.

LmiExpr::operator*()

Multiply double constant and return new expression.

Synopsis

LmiExpr operator*(double c)

Arguments

c: constant multiplier.

Return

result expression.

LmiExpr::operator+=()

Add a symmetric matrix or LMI expression to self.

Synopsis

void operator+=(const LmiExpr &expr)

Arguments

expr: symmetric matrix or LMI expression to be added.

LmiExpr::operator+()

Add a symmetric matrix or LMI expression and return new LMI expression.

Synopsis

LmiExpr operator+(const LmiExpr &other)

Arguments

other: other symmetric matrix or LMI expression to add.

Return

result expression.

LmiExpr::operator-=()

Substract a symmetric matrix or LMI expression from self.

Synopsis

void operator-=(const LmiExpr &expr)

Arguments

expr: symmetric matrix or LMI expression to be substracted.

LmiExpr::operator-()

Substract a symmetric matrix or LMI expression and return new expression.

Synopsis

LmiExpr operator-(const LmiExpr &other)

Arguments

other: other symmetric matrix or LMI expression to substract.

Return

result expression.

LmiExpr::Remove()

Remove i-th term from LMI expression.

Synopsis

void Remove(int idx)

Arguments

idx: index of the term to be removed.

LmiExpr::Remove()

Remove the term associated with given variable from LMI expression.

Synopsis

void Remove(const Var &var)

Arguments

var: a variable whose term should be removed.

LmiExpr::Reserve()

Reserve capacity to contain at least n items.

Synopsis

void Reserve(size_t n)

Arguments

n: capacity number of LMI expression.

LmiExpr::SetCoeff()

Set coefficient matrix of the i-th term in LMI expression.

Synopsis

void SetCoeff(int i, const SymMatrix &mat)

Arguments

i: index of the LMI term.

mat: new coefficient matrix object.

LmiExpr::SetConstant()

Set constant term of the LMI expression.

Synopsis

void SetConstant(const SymMatrix &mat)

Arguments

mat: new matrix object.

LmiExpr::Size()

Get number of terms in LMI expression.

Synopsis

size_t Size()

Return

number of LMI terms.