Open AlexMontgomerie opened 2 years ago
Hi Alex. Currently, MindtPy does not support pyomo.kernel
models. If you want to use MindtPy, you need to build your model in pyomo.environ
.
Hi Alex, complementing Zedong's comment, we want to highlight that fixing MindtPy's code to support pyomo.kernel
models would not be a minor update to the code. Since you are the first user that has ever raised the issue of wanting to use MindtPy with such models, we would like to know what applications did you have in mind.
In general, we know that the change is doable (it has to do with the way that kernel
uses suffixes, which we need to derive duals for the algorithm in MindtPy) but we do not have the manpower to make that change right now unless there is a big motivation for it.
On the other hand, we are always open to receiving pull requests in case you are interested in taking the matter on you own hands :)
Hi Both, thanks for getting back to me. To be honest I was just messing around with the different MINLP optimisers and noticed that it wasn't working, so thought I would raise the issue. I switched to pyomo.kernel
, because I wanted to use piecewise_nd
.
I've had a go at making MindtPy work with pyomo.kernel
, I'll make a PR if I get anywhere with it!
Summary
I am trying to create a model using the
pyomo.kernel
part of the library, and wish to use themindtpy
solver, however I'm coming into issues where it doesn't seem to be able to use the pyomo.kernel block. And just to note, it works fine using apyomo.environ.ConcreteModel
.Steps to reproduce the issue
Error Message
Information on your system
Pyomo version: 6.2 Python version: 3.8 Operating system: ubuntu 20.04 How Pyomo was installed (PyPI, conda, source): conda Solver (if applicable): mindtpy