Rev | Line | |
---|
[37] | 1 | function ex14_1_8 |
---|
| 2 | |
---|
| 3 | yalmip('clear') |
---|
| 4 | |
---|
| 5 | sdpvar x1 x2 x3 objvar; |
---|
| 6 | |
---|
| 7 | F = set([]); |
---|
| 8 | |
---|
| 9 | F = F + set( - x3 + objvar == 0); |
---|
| 10 | |
---|
| 11 | F = F + set( (0.0476666666666666 - 0.0649999999999999*x1)*exp(10*x1/(1 + 0.01*x1)) - x1 - x3 <= 0); |
---|
| 12 | |
---|
| 13 | F = F + set( x1 - (0.0476666666666666 - 0.0649999999999999*x1)*exp(10*x1/(1 + 0.01*x1)) - x3 <= 0); |
---|
| 14 | |
---|
| 15 | F = F + set( (0.143 + (-0.13*x1) - 0.195*x2)*exp(10*x2/(1 + 0.01*x2)) + x1 - 3*x2 - x3 <= 0); |
---|
| 16 | |
---|
| 17 | F = F + set( (-(0.143 + (-0.13*x1) - 0.195*x2)*exp(10*x2/(1 + 0.01*x2))) - x1 + 3*x2 - x3 <= 0); |
---|
| 18 | |
---|
| 19 | F = F + set(-1 < [x1 x2 ] < 1); |
---|
| 20 | |
---|
| 21 | solvesdp(F,objvar,sdpsettings('solver','bmibnb','bmibnb.upper','fmincon','allownon',1,'bmibnb.maxiter',1)) |
---|
Note: See
TracBrowser
for help on using the repository browser.