python-mip
python-mip copied to clipboard
Printing the Model
To print the objective function and constrains when print(model) is called. It will help to visualize the input model.
@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 ....
To see the complete model, you can also use model.write('filename.lp') and look at the file written in lp format.