coin-or / SHOT

A solver for mixed-integer nonlinear optimization problems
https://shotsolver.dev
Eclipse Public License 2.0
117 stars 25 forks source link

switch to solvelink=2 if calling GAMS/IPOPT #137

Closed svigerske closed 2 years ago

svigerske commented 2 years ago

One weekend and I had forgotten what I wrote on Friday.

So, as alternative to #136, instead of forbidding GAMS/IPOPT(H), it switches the solvelink option to 2. This makes gev write out the problem instance to a GAMS control file and then calls GAMS/IPOPT(H) as a separate process. A bit slower, but should not crash.

andreaslundell commented 2 years ago

I think I prefer this over https://github.com/coin-or/SHOT/pull/136. This is really not a common issue, as most (all except me?) SHOT users who uses GAMS+Ipopt uses the version GAMS provide (without external Ipopt-support).