Description of the issue
Hi everyone,
I am working on a facility location problem using GAMSpy and trying to match the results with my original GAMS implementation.
In GAMS, I use the following line to force the solver to reach the proven optimal solution with zero gap:
option optcr = 0;
I would like to do the same in GAMSpy, to ensure that the model doesn't stop until an optimal solution is found (gap = 0.0). However, I could not find a clear way to apply optcr in GAMSpy.
Is there a recommended way to do this in the latest version of GAMSpy?
What I have tried so far:
model.setOption("optcr", 0) → returns 'Model' object has no attribute 'setOption'
model.options.optcr = 0 → 'Model' object has no attribute 'options'
m.setOption("optcr", 0) → 'Container' object has no attribute 'setOption'
Tried passing options={"optcr": 0} inside the Model(...) constructor → results in a TypeError
None of these worked. Is there a correct way to apply solver options like optcr in GAMSpy?
# Error message and stack trace
Error message and stack trace goes here.
# GAMSPy version
This information can be retrieved with:
gamspy -v