GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing yalmip.github.io — Semidefinite programming This example illustrates the definition and solution of a simple semidefinite programming problem. Given a linear dynamic system \(\dot{x} = Ax\), our goal is to prove stability by finding a symmetric matrix \(P\) satisfying \[\begin{align}A^TP + PA &\prec 0\\P &\succ 0\end{align}\]Define a stable matrix \(A\) and symmetric matrix \(P\) (remember: square matrices are symmetric by default) Having defined \(P\), we are ready to define the semidefinite constraints. Note that we have defined non-strict inequalities, although our theoretical problem involves strict inequalities. YALMIP will warn or submit and error if you use strict inequalities.
If you want to satisfy a strict inequality, you have to define a non-strict inequality with a margin. To avoid the zero solution on this homogeneous problem we can for instance add a margin and use \(P \succeq I \) (which additionally ensures we obtain a strictly feasible solution), or as we do here, constrain the trace of the matrix to dehomogenize the solution. At this point, we are ready to solve our problem. But first, we display the collection of constraints to see what we have defined. We only need a feasible solution, so one argument is sufficient when we call optimize to solve the problem. The resulting constraint satisfaction is easily investigated with check. Minimizing, e.g., the top-left element of \(P\) is done by specifying an objective function. We can easily add additional linear inequality constraints. If we want to add the constraint that all off-diagonal elements are larger than zero, one approach is (remember, standard MATLAB indexing applies) Since the variable P([2 3 6]) is a vector, the constraint is interpreted as a standard linear inequality, according to the rules introduced in the basic tutorial. Finally, let us solve a robust stabilization problem to show how we can use for-loops The computed matrix \(P\) defines an invariant ellipsoid, so let us lot trajectories to see that this really holds true
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |