我在 pyomo 中建立了一个具体的模型优化模型。我以前运行一个非常相似的模型作为最小化问题,但我现在将它编辑为最大化问题并且它出错了。看起来有一个版本检查失败了?有什么想法可以解决这个问题吗?
错误:
Traceback (most recent call last):
File "<input>", line 120, in <module>
File "C:\Anaconda3\envs\visionary\lib\site-packages\pyomo\opt\base\solvers.py", line 601, in solve
result = self._postsolve()
File "C:\Anaconda3\envs\visionary\lib\site-packages\pyomo\solvers\plugins\solvers\CBCplugin.py", line 898, in _postsolve
results = super(CBCSHELL, self)._postsolve()
File "C:\Anaconda3\envs\visionary\lib\site-packages\pyomo\opt\solver\shellcmd.py", line 277, in _postsolve
results = self.process_output(self._rc)
File "C:\Anaconda3\envs\visionary\lib\site-packages\pyomo\opt\solver\shellcmd.py", line 350, in process_output
results = self.process_logfile()
File "C:\Anaconda3\envs\visionary\lib\site-packages\pyomo\solvers\plugins\solvers\CBCplugin.py", line 668, in process_logfile
if self.version() < (2, 10, 2):
TypeError: '<' not supported between instances of 'NoneType' and 'tuple'