LINGO简单使用

在这里插入图片描述
在这里插入图片描述

模型代码

model:
max=72*x1+64*x2;
[milk] x1+x2<50;
[time]12*x1+8*x2<480;
[cpet]3*x1<100;
end

模型求解结果


  Global optimal solution found.
  Objective value:                              3360.000
  Infeasibilities:                              0.000000
  Total solver iterations:                             2


                       Variable           Value        Reduced Cost
                             X1        20.00000            0.000000
                             X2        30.00000            0.000000

                            Row    Slack or Surplus      Dual Price  
                              1        3360.000            1.000000
                           MILK        0.000000            48.00000
                           TIME        0.000000            2.000000
                           CPET        40.00000            0.000000



  • Slack or Surplus :3中资源在最优解下是否还有剩余
  • Dual Price :影子价格,即3种资源在最优解下增加1单位时效益的增量

灵敏性分析 最优解不变的情况下目标函数系数的允许变化范围
注:灵敏性分析 给出的只是最优解保持不变的充分条件,而不一定是必要条件

 Ranges in which the basis is unchanged:

                                      Objective Coefficient Ranges
                                  Current        Allowable        Allowable
                Variable      Coefficient         Increase         Decrease
                      X1         72.00000         24.00000         8.000000
                      X2         64.00000         8.000000         16.00000

                                           Righthand Side Ranges
                     Row          Current        Allowable        Allowable
                                      RHS         Increase         Decrease
                    MILK         50.00000         10.00000         6.666667
                    TIME         480.0000         53.33333         80.00000
                    CPET         100.0000         INFINITY         40.00000

INFINITY :无穷

posted @   iforeverhz  阅读(131)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示