So I asked a question a month ago. I had a really nice answer to that question. I wanted to test if the answer works right now. But I am getting ModuleNotFoundError
.
I did following before testing:
conda install -c conda-forge pyomo
conda install -c conda-forge pyomo.extras
I want to run this script in my code (copy/pasted from the other question):
from pyomo.util.infeasible import log_infeasible_constraints
...
SolverFactory('your_solver').solve(model)
...
log_infeasible_constraints(model)
Error I encounter:
N:\urbs>python runme.py
Traceback (most recent call last):
File "runme.py", line 9, in <module>
from pyomo.util.infeasible import log_infeasible_constraints
ModuleNotFoundError: No module named 'pyomo.util.infeasible'
How to install it then? I checked doc etc..., could not find a way.