ex6.lp

来自「生成直角Steiner树的程序包」· LP 代码 · 共 27 行

LP
27
字号
/*This example is from "Integer and Combinatorial Optimization" by George L.Nemhauser and Laurence A. Wolsey page 443.They claim that:"It is not hard to show that an optimal solution isx1 = 33x2 = 1x3 = 0x4 = 1x5 = 0x6 = 0x7 = 0and that the optimal OF value is 19972"This is not true. lp_solve will find a better solution. Just try.*/max: 592x1 + 381x2 + 273x3 + 55x4 + 48x5 + 37x6 + 23x7;3534x1 + 2356x2 + 1767x3 + 589x4 + 528x5 + 451x6 + 304x7 < 119567;int x1, x2, x3, x4, x5, x6, x7;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?