source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/dev/tests-mbg/bnb/test_bnb_gan.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 293 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function micp |
2 | ||
3 | yalmip('clear') | |
4 | M = 3; | |
5 | a = [3 4 5]'; | |
6 | N = 10; | |
7 | x = intvar(1,2);gan(x,a(1:2)); | |
8 | x = [x intvar(1)]; | |
9 | assign(x,1); | |
10 | sol = solvesdp(set(x > 1)+set(sum(x)<=N),gan(x,a),sdpsettings('solver','bnb','usex0',1)) | |
11 | mbg_asserttolequal(sol.problem,0); | |
12 | mbg_asserttolequal(double(x), [1 2 2], 1e-5); |
Note: See TracBrowser
for help on using the repository browser.