zoukankan      html  css  js  c++  java
  • Shadow price in linear programming

    It can be understood as: the value of an addition revenue if the constraint is relaxed.

    or

    How much you would be willing to pay for an additional resource.

    The problem:

    maximize 5x1 + 4x2 + 6x3
    subject to 6x1 + 5x2 + 8x3 <= 16 (c1)
    10x1 + 20x2 + 10x3 <= 35 (c2)
    0 <= x1, x2, x3 <= 1

    Answer:

    The shadow price associated with a resource tells you how much more profit you would get by increasing the amount of that resource by one unit. (So "How much you would be willing to pay for an additional resource" is a good way of thinking about the shadow price.)

    In the example you give, there are 16 units available of the first resource and 35 units available of the second resource. The fact that the shadow price of  is 0.727273 means that if you could increase the first resource from 16 units to 17 units, you would get an additional profit of about$0.73. Similarly, if you could increase the second resource from 35 units to 36 units then you would get an additional profit of about $0.02.

    So if you could increase just one resource by one unit, and the cost of increasing the first resource is the same as that of increasing the second resource (this assumption is not part of the model), then, yes, you should definitely increase the first resource by one unit.

  • 相关阅读:
    程序的版式
    文件结构
    LIB和DLL的区别与使用
    静态链接库
    C++ Vector
    C++ Map
    C++ List
    快速实现十进制向二进制转换
    Fail2ban 运维管理 服务控制
    Fail2ban 配置详解 动作配置
  • 原文地址:https://www.cnblogs.com/JasperZhao/p/12846836.html
Copyright © 2011-2022 走看看