|
I created a model in code, and the solution is wrong. To debug the issue, I would like to print the model to the screen. When I write Is there a way to print the actual model (the constraints and objective) to the screen? |
Answered by
rschwarz
Feb 27, 2023
Replies: 2 comments 2 replies
|
You can use |
0 replies
Answer selected by
sebheger
|
OK. This helps, but I think it would be better to be able to get the model as a string. This would allow e.g. to write the model to a log file using the standard |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
Model.write("problem.lp")to write the problem to a file in the.lpformat, which is human-readable.