-
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
Gurobi 11 differences in piecewise-linear approximation results #227
Comments
What about compacting solution check warnings? It can be a table as follows, with the lines appearing only when there are violations of the corr. type:
|
Docu enhancement: https://mp.ampl.com/solution-check.html#warnings-format now contains a list of expressions. But ideally we should have this list somewhere in the modeling guide? |
@4er4er4er @fdabrandao I am experimenting with compact format #200 which reports the following for the above example:
Let me know any comments. |
Changing once more as follows:
|
Gurobi 10 and 11 give somewhat different results for piecewise-linear approximation of this simple test problem:
Gurobi 10 with
nonconvex=2
reports:Since this is a feasible solution to a minimization of a piecewise-linear approximation, it's expected that the objective will be greater than the true solution. But it only differs by 1 in the 7th digit from the "true" objective value of 0.4262087102 returned by Gurobi 11 with
funcnonlinear=1
and also by Knitro.Gurobi 11 with
funcnonlinear=-1
reports the following:So the result has changed. Maybe that is OK, but here are two questions to consider:
Gurobi uses significantly fewer nodes and simplex iterations, but returns an objective value that is only correct to 4 places. Can this be explained by the change in the default behavior of FuncPieces previously mentioned by Gleb?
Is the long warning appropriate for the piecewise-linear case? In other situations, this kind of message warns that the solution may be incorrect, whereas here Gurobi has correctly found a solution to the p-l approximation that the user requested. If MP can tell when a p-l approximation has been solved, then an alternative to the warning would be to adjust the solve result message to something like this:
Gurobi 11.0.0: optimal solution to p-l approximation; objective 0.4260218562
The text was updated successfully, but these errors were encountered: