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 (none), 14 years ago

Added original make3d

File size: 293 bytes
Line 
1function micp
2
3yalmip('clear')
4M = 3;
5a = [3 4 5]';
6N = 10;
7x = intvar(1,2);gan(x,a(1:2));
8x = [x intvar(1)];
9assign(x,1);
10sol = solvesdp(set(x > 1)+set(sum(x)<=N),gan(x,a),sdpsettings('solver','bnb','usex0',1))
11mbg_asserttolequal(sol.problem,0);
12mbg_asserttolequal(double(x), [1 2 2], 1e-5);
Note: See TracBrowser for help on using the repository browser.