source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/dev/tests-mbg/bnb/test_bnb_minlp_1.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 277 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function minlp |
2 | ||
3 | randn('seed',12345); | |
4 | rand('seed',12345); | |
5 | ||
6 | x = sdpvar(5,1); | |
7 | A = randn(15,5); | |
8 | b = rand(15,1)*10; | |
9 | ||
10 | obj = sum(x) + sum((x-3).^4); | |
11 | sol = solvesdp(set(A*x < b) + set(integer(x)),obj,sdpsettings('bnb.solver','fmincon','warning',0)) | |
12 | ||
13 | mbg_asserttolequal(sol.problem,0); |
Note: See TracBrowser
for help on using the repository browser.