Pyomo / pyomo

An object-oriented algebraic modeling language in Python for structured optimization problems.
https://www.pyomo.org
Other
1.92k stars 494 forks source link

Get access to symbol_map of GAMS solver #768

Open Johanna1234 opened 5 years ago

Johanna1234 commented 5 years ago

Is there a reason why the symbol_map is deleted in model.solutions for solver GAMS? For other solvers it is not deleted (e.g. CBC). In some cases it can be helpful to keep the symbol map. For example in case of using CPLEX via GAMS the symbol map can be used to identify infeasibilities. The CPLEX solver log returns only the symbols of the infeasible constraints.

qtothec commented 5 years ago

@gseastream? Another approach may be use the symbolic_solver_labels option. I can't remember if we have already resolved some of the issues related to that (invalid symbol name characters, symbol length, etc.).

gseastream commented 5 years ago

There is no particular reason. When I wrote solver interface stuff I copied a lot from the cplex solver interface and that is what other solvers did.