cog-imperial / OMLT

Represent trained machine learning models as Pyomo optimization formulations
Other
281 stars 59 forks source link

OMLT CBC Solver Error #132

Open bspiveyxom opened 1 year ago

bspiveyxom commented 1 year ago

When trying to run OMLT in Databricks using the CBC solver, I received a -printingOptions error. -printingOptions may not be an option for the latest CBC?

It appears that OMLT/Pyomo is recognizing the CBC solver. Is this an easy fix to configure this printing option to prevent this error.

image

jalving commented 1 year ago

Hi @bspiveyxom, I can't seem to reproduce this issue using Pyomo-6.6.2 or Cbc 2.10.10 using the executable approach. I can't tell why Cbc is throwing that error; that should be a default option it runs with. Does Cbc work for any problem, or does this just happen in OMLT?

Can you run with the solver output?

status = solver.solve(model3_mixed, tee=True)

Also, does model3_mixed contain any nonlinear activation functions or use the complementarity formulation? Those would also fail with cbc, but the error would be different.