使用高求解器和线索

问题描述 投票:0回答:1

I已使用Linopy实施了线性程序,并使用Highs Solver使用内部点方法来解决它。

对于此应用程序,我不需要在解决方案上运行交叉。当我将

run_crossover='off'

选项传递到高高通过线索时,高点的行为符合预期并跳过交叉步骤,但是,线索不考虑省略此步骤时优化的模型。在这种情况下,您知道如何从线索中获取解决方案吗?
Highs的示例日志消息:

Ipx: IPM optimal WARNING: LP solver residuals: primal = 0.0710581; dual = 0.0473415 yield num/max/sum primal (391784/0.0710581/6.24267) and dual (463677/0.0473415/3.47325) corrections WARNING: Unwelcome IPX status of Unknown: basis is not valid; solution is valid; run_crossover is "off" Model name : linopy-problem-m_vf1rkb Model status : Unknown IPM iterations: 48 Objective value : -2.8809874134e+07 Relative P-D gap : 7.5484672674e-01 HiGHS run time : 141.71 Writing the solution to /private/var/folders/4p/qywpknvj5qx89qh1g6vy1qlc0000gn/T/linopy-solve-28b76k6g.sol

以及以下来自Linopy的日志消息:
Solution status unknown. Trying to parse solution.
Optimization failed: 
Status: unknown
Termination condition: unknown
Solution: 1786176 primals, 1456848 duals
Objective: -2.88e+07
Solver model: available
Solver message: unknown

可以通过升级到最新版本的Linopy来解决这一问题。示例错误范围差异为v0.3.15。一旦升级到v0.5.0,这将不再是问题。
    
python optimization solver highs
1个回答
0
投票

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.