I am using pyomo and cbc to solve a model. I have tried to pass options using the following:
opt = SolverFactory('cbc')
opt.options['seconds'] = 3
OR
results = opt.solve(model, options={"seconds": 3}, tee=True)
In the output, I get the line: "seconds was changed from 1e+100 to 3" but it still takes about 7 seconds to solve. What am I doing wrong with regards to passing options? Thank you