-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent (sometimes garbled) solver output #233
Comments
The above commit should fix the described case, namely when options are present (sorry for not checking it myself but my Windows VM is weary...). Should fix, because of the following. The examples show that GurobiMP prints 15 backspaces before the final message, despite intermittent output after the initial banner However, when no options are given, both ASL and MP drivers would print the 15 bs. This is the expected behaviour when running with
or similar. AMPL has a mechanism to avoid using backspaces at all: just pass them in the beginning of the message in the .sol file, then AMPL skips so many symbols when printing the message. But when running from command line with the bg22@bg69-Dell:~/Documents/prj/AMPL/solvers-private/mp/test/end2end/cases/categorized/fast/suf_common$ gurobi /tmp/mipl2.nl -AMPL
Gurobi 11.0.1: bg22@bg69-Dell:~/Documents/prj/AMPL/solvers-private/mp/test/end2end/cases/categorized/fast/suf_common$ Dilemma... |
... We can avoid printing bs's completely if we delay printing the banner until some intermittent output is printed. This solves all the cases above, except for the case when no solver options are used and the computation runs long - currently ASL and MP print the banner, solve, delete it, and AMPL overwrites it with the solver message. With the proposed change, nothing will be printed until AMPL's output. But who needs the banner when the computation runs and outlev=1 not provided? |
We have always shown a short message (like |
With the latest Gurobi build (20240320), both the initial banner
Have you observed other environments where that give trouble with the output in some situations? I still think it's a good idea to have the |
The ASL version of Gurobi 11 produces the same output in many different environments. For example,
The MP version is much more variable, however. In the following examples, the option
numericfocus=3
is sometimes not echoed, and there are various formatting glitches:sw.exe:
IDE:
cmd.exe:
Jupyter notebook (nonprinting char before second "Gurobi"):
Google Colab:
There are similar issues with other solvers, so I just picked Gurobi as a good example to start with. These issues do not affect the performance of MP or the solver, but they can confuse users, and they have caused a lot of difficulty in preparing good-looking examples.
The text was updated successfully, but these errors were encountered: