source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/dev/tests-mbg/bnb/test_bnb_sdp_1.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 312 bytes |
Line | |
---|---|
1 | function misdp |
2 | |
3 | % Test two regression bugs |
4 | % 1. quadratic costs in binary SDP |
5 | % 2. OR on SDP constraints |
6 | |
7 | X = sdpvar(3,3); |
8 | obj = trace((X-2*eye(3))*(X-2*eye(3))'); |
9 | sol = solvesdp(set (X<3*eye(3)) + set((X>eye(3)) | (X<-eye(3))),obj) |
10 | |
11 | mbg_asserttolequal(sol.problem,0); |
12 | mbg_asserttolequal(double(obj), 0, 1e-5); |
13 |
Note: See TracBrowser
for help on using the repository browser.