Saving all associated data from a model

18 views
Skip to first unread message

Tom McCarty

unread,
May 26, 2017, 11:11:48 AM5/26/17
to Gurobi Optimization
Hi there,

I am interested in being able to write a full package of a solution to file. For example, I want to be able to store all of the optimum decision variables, as well as the input variables that were handed to the model. 

I have been scanning, and cannot find a command that writes the full model, including solutions to file?

If anyone is able to help, that would be amazing.

Thanks,
Tom

Daniel Espinoza

unread,
May 26, 2017, 11:18:52 AM5/26/17
to Gurobi Optimization
Tom,

You can always write the problem as an MPS file. Regarding solutions you would have to write your own method.

Best
Daniel

Daniel Espinoza

unread,
May 26, 2017, 11:26:00 AM5/26/17
to Gurobi Optimization
Tom

My mistake, you can save the solution by calling model.write('model.sol')

Best
Daniel

Daniel Espinoza

unread,
May 26, 2017, 11:28:07 AM5/26/17
to Gurobi Optimization
Reply all
Reply to author
Forward
0 new messages