when try to solve a pretty simple MINLP model with the bonmin solver, everything works pretty fine. But when I change to the baron solver, the baron_writer throws me an Error:
File "C:\ProgramData\Anaconda3\lib\site-packages\pyomo\repn\plugins\baron_writer.py", line 81, in visit
parens = node._associativity() != 1
AttributeError: '_GeneralExpressionData' object has no attribute '_associativity'
I can get rid of the error when I reduce the complexity of the interleaved expressions of the model. But of course then I do not have fullfilled the optimizetion goal.
This was resolved by #1031 and should be available in the current release. Upgrading to Pyomo 5.6.4 should resolve your problem. Please reopen this issue if 5.6.4 doesn't fix things.
Dear Pyomo-Team,
when try to solve a pretty simple MINLP model with the bonmin solver, everything works pretty fine. But when I change to the baron solver, the baron_writer throws me an Error:
File "C:\ProgramData\Anaconda3\lib\site-packages\pyomo\repn\plugins\baron_writer.py", line 81, in visit parens = node._associativity() != 1 AttributeError: '_GeneralExpressionData' object has no attribute '_associativity'
I can get rid of the error when I reduce the complexity of the interleaved expressions of the model. But of course then I do not have fullfilled the optimizetion goal.
Many greetings
Joerg
Bonmin_Log.txt