The problem is unbounded but only on the second loop

19 views
Skip to first unread message

Asher Metzger

unread,
Sep 12, 2015, 1:42:00 PM9/12/15
to YALMIP
Hi,

I'm having trouble with a play model I developed.
I get on unbounded exit on the second loop of the Mass_1_linear using linprog. for some reason it seems like it does not even look at the constraints because it is obvious that constraint C5 doesn't work and further more the variables are bounded on other constraints.
When coming in on the second loop the Q_0 variable is no longer only sdpvar but also constants. this is the only difference I can see between the 2 loops.

I would be happy if someone could point me to my error.

Thanks a lot in advance,
Asher
convert_for_B0.m
Mass_1_linear.m
Mass_1.m

Johan Löfberg

unread,
Sep 12, 2015, 1:52:49 PM9/12/15
to YALMIP
>>Mass_1_linear
Undefined function or variable 'mass'.

Error in Mass_1_linear (line 13)
    [Q_0,cost] = mass(aa,years,ii);
 
>> 

Asher Metzger

unread,
Sep 12, 2015, 2:20:44 PM9/12/15
to YALMIP
sorry. wrong file.
now it should run.
convert_for_B0.m
Mass_1_linear.m
mass.m

Johan Löfberg

unread,
Sep 12, 2015, 2:39:15 PM9/12/15
to YALMIP
It is unbounded in all iterations except the first (using a real solver, such as gurobi, would never trust linprog to judge this)

You can see the huge solution, by artificially constraining it to something large but finite

sol2   = optimize([Const2,obj(ii) >= -10000],obj(ii),ops1);
value(Mp)value(Md)
...


Reply all
Reply to author
Forward
0 new messages