source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/dev/tests-mbg/bmibnb/bmibnb_sahinidis.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 232 bytes |
Line | |
---|---|
1 | function sahinidis |
2 | |
3 | |
4 | x1 = sdpvar(1,1); |
5 | x2 = sdpvar(1,1); |
6 | F = set(0 < x1 < 6)+set(0 < x2 < 4) + set(x1*x2 < 4); |
7 | |
8 | obj = -x1-x2; |
9 | |
10 | sol = solvesdp(F,obj,sdpsettings('solver','bmibnb')) |
11 | |
12 | mbg_asserttolequal(double(obj),-6.66666666, 1e-6); |
Note: See TracBrowser
for help on using the repository browser.