model statistics

43 views
Skip to first unread message

Mostafa Nick

unread,
Jun 6, 2013, 4:27:41 PM6/6/13
to yal...@googlegroups.com
Hi

How can I print statistics about the model by using Model.printStats(), in YALMIP using Gurobi solver?

Thank you in advance
Regards
Message has been deleted

Johan Löfberg

unread,
Jun 13, 2013, 6:11:23 AM6/13/13
to yal...@googlegroups.com
1. Export the MATLAB data without solving anything
model = export(constraints,objective,
sdpsettings('solver','gurobi')

2. Export MATLAB model before solving (model saved to gurobidebug.mat)
ops = sdpsettings('solver','gurobi','savedebug',1)
solvesdp(constraints,objective,ops)
load gurobidebug

1 and 2 followed by
params = model.params;
params.ResultFile = 'mymodel.mps';
params.TimeLimit = 1;
gurobi(model, params);

3.Or tell gurobi to output model
ops = sdpsettings('gurobi.ResultFile','mymodel.mps');
solvesdp(constraints,objective,ops)

You might want to set time-limit parameter to 0 if you don't want gurobi to actually solve the problem
Reply all
Reply to author
Forward
0 new messages