Closed ZedongPeng closed 1 year ago
A naive fix is to just add the _cuid
flag that is missing to the Solution
object at some point, but I'm not sure if this is the "right" fix, as I'm not sure why this doesn't cause an error with SolverFactory("ipopt")
as well.
Any progress on this? @Robbybp
Nope. opt
isn't a part of the codebase I know well, and the missing _cuid
flag seems confusing. I just took a brief look at this because it involved CyIpopt.
Any thoughts on this? @jsiirola
@jsiirola @blnicho Can we look at this next week?
Summary
I use
cyipopt
to solve a QCP model and load the solution manually from the result. An error came out when loading the solution.AttributeError: Unknown attribute '_cuid' for object with type <class 'pyomo.opt.results.solution.Solution'>
Related issue: https://github.com/Pyomo/pyomo/issues/2767
Steps to reproduce the issue
Error Message
Information on your system
Pyomo version: 6.5.1.dev0 Python version: 3.7.12 Operating system: macOS Monterey Version 12.2 How Pyomo was installed (PyPI, conda, source): source Solver (if applicable): cyipopt
Additional information