回覆列表
  • 1 # 藍風24

    根據你寫出的模型,lingo程式是:

    MODEL:

    MIN=2800*(X11+X21+X31+X41)+4500*(X12+X22+X32)+6000*(X13+X23)+7300*X14;

    X11+X12+X13+X14>15;

    X12+X13+X14+X21+X22+X23>10;

    X13+X14+X22+X23+X31+X32>20;

    X14+X23+X32+X41>12;

    END

    執行後得到全域性最優解:

    Global optimal solution found.

    Objective value: 118400.0

    Infeasibilities: 0.000000

    Total solver iterations: 3

    Model Class: LP

    Total variables: 10

    Nonlinear variables: 0

    Integer variables: 0

    Total constraints: 5

    Nonlinear constraints: 0

    Total nonzeros: 30

    Nonlinear nonzeros: 0

    Variable Value Reduced Cost

    X11 3.000000 0.000000

    X21 0.000000 2800.000

    X31 8.000000 0.000000

    X41 0.000000 1100.000

    X12 0.000000 1700.000

    X22 0.000000 1700.000

    X32 0.000000 0.000000

    X13 0.000000 400.0000

    X23 0.000000 1500.000

    X14 12.00000 0.000000

    Row Slack or Surplus Dual Price

    1 118400.0 -1.000000

    2 0.000000 -2800.000

    3 2.000000 0.000000

    4 0.000000 -2800.000

    5 0.000000 -1700.000

  • 中秋節和大豐收的關聯?
  • 描寫、說明、抒情、記敘、議論屬於什麼?