source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/@sdpvar/clearsdpvar.m
Last change on this file was 37, checked in by , 14 years ago | |
---|---|
File size: 390 bytes |
Line | |
---|---|
1 | function clearsdpvar(X,value) |
2 | % CLEARSDPVAR Clear solution |
3 | |
4 | % Author Johan Löfberg |
5 | % $Id: clearsdpvar.m,v 1.2 2004/07/01 11:17:09 johanl Exp $ |
6 | |
7 | x_lmi_variables = X.lmi_variables; |
8 | |
9 | sol = sdpvar('getSolution'); |
10 | keep_these = find(~ismember(sol.variables,x_lmi_variables)); |
11 | sol.optvar = [sol.optvar(keep_these)]; |
12 | sol.variables = [sol.variables(keep_these)]; |
13 | sdpvar('setAllSolution',sol); |
14 | |
15 | |
16 |
Note: See TracBrowser
for help on using the repository browser.