source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/dev/regress_bmibnb_gamsgpkl.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 389 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function fail = regress_bmibnb_gamsrobot(ops) |
2 | ||
3 | x1 = sdpvar(1,1); | |
4 | x2 = sdpvar(1,1); | |
5 | t = sdpvar(1,1); | |
6 | ||
7 | F = set([x1;x2]>0); | |
8 | F = F + set(- x1 + x2 < 1); | |
9 | F = F + set(x1 - x2 < 1); | |
10 | F = F + set(- x1 + 2*x2 < 3); | |
11 | F = F + set(2*x1 - x2 < 3); | |
12 | obj = (2*x1 - 2*x1*x1 + 2*x1*x2 + 3*x2 - 2*x2*x2); | |
13 | F = F + set(obj<t); | |
14 | sol = solvesdp(F,obj,ops); | |
15 | ||
16 | fail=getfail(sol.problem,double(obj),-3,checkset(F)); | |
17 |
Note: See TracBrowser
for help on using the repository browser.