python-mip icon indicating copy to clipboard operation
python-mip copied to clipboard

Printing the Model

Open subratpp opened this issue 5 years ago • 2 comments

To print the objective function and constrains when print(model) is called. It will help to visualize the input model.

subratpp avatar Apr 23 '20 15:04 subratpp

@subratpp In my opinion the print function of python shouldn't be used to display the complete model. It should print the name and maybe some high-level indicators of the model, like number of vars, constrs ....

sebheger avatar Apr 09 '22 07:04 sebheger

To see the complete model, you can also use model.write('filename.lp') and look at the file written in lp format.

rschwarz avatar Apr 09 '22 10:04 rschwarz