1
votes

When invoking gams solver in pyomo as follows

SolverFactory('gams').solve(model, solver = 'CONOPT', tee = True)

is it possible to modify the solver options OPTCR and OPTCA ?

Thanks in advance for your time !

1

1 Answers

2
votes

Yes. You can use the add_options parameter to insert arbitrary lines:

SolverFactory('gams').solve(model, solver='baron', tee=True, add_options=['option optcr=0.001;', 'option optca=0.01;'])