| Robust Control Toolbox | |
| Provide feedback about this page |
Given particular instance of decision variables, evaluate all variable terms in system of LMIs
Syntax
Description
evallmi
evaluates all LMI constraints for a particular instance decvars of the vector of decision variables. Recall that decvars fully determines the values of the matrix variables X1, . . ., XK. The "evaluation" consists of replacing all terms involving X1, . . ., XK by their matrix value. The output evalsys is an LMI system containing only constant terms.
The function evallmi is useful for validation of the LMI solvers' output. The vector returned by these solvers can be fed directly to evallmi to evaluate all variable terms. The matrix values of the left- and right-hand sides of each LMI are then returned by showlmi.
Observation
evallmi is meant to operate on the output of the LMI solvers. To evaluate all LMIs for particular instances of the matrix variables X1, . . ., XK, first form the corresponding decision vector x with mat2dec and then call evallmi with x as input.
Example
Consider the feasibility problem of finding X > 0 such that
where
This LMI system is defined by:
setlmis([]) X = lmivar(1,[2 1]) % full symmetric X lmiterm([1 1 1 X],A',A) % LMI #1: A'*X*A lmiterm([1 1 1 X],-1,1) % LMI #1: -X lmiterm([1 1 1 0],1) % LMI #1: I lmiterm([-2 1 1 X],1,1) % LMI #2: X lmis = getlmis
To compute a solution xfeas, call feasp by
The LMI constraints are therefore feasible since tmin < 0. The solution X corresponding to the feasible decision vector xfeas would be given by X = dec2mat(lmis,xfeas,X).
To check that xfeas is indeed feasible, evaluate all LMI constraints by typing
The left- and right-hand sides of the first and second LMIs are then given by
confirms that the first LMI constraint is satisfied by xfeas.
See Also
showlmi Return the left- and right-hand sides of an LMI after
evaluation of all variable terms
setmvar Instantiate a matrix variable and evaluate all LMI
terms involving this matrix variable
dec2mat Given values of the decision variables, derive the
corresponding values of the matrix variables
mat2dec Return the vector of decision variables corresponding
to particular values of the matrix variables
| Provide feedback about this page |
![]() | drawmag | feasp | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |