简体   繁体   English

LP:积极减少的成本对应于积极变量?

[英]LP: postive reduced costs corresponding to positive variables?

I have the next LP problem 我有下一个LP问题

Maximize

1000 x1 + 500 x2 - 500 x5 - 250 x6 

Subject To

 c1: x1 + x2 - x3 - x4  = 0

 c2: - x3 + x5  = 0

 c3: - x4 + x6  = 0

With these Bounds

 0 <= x1 <= 10

 0 <= x2 <= 15

 0 <= x5 <= 15

 0 <= x6 <= 5

By solving this problem with Cplex dual algorithm I get an optimal solution of 6250. But checking the reduced costs of the variables I get the next results 通过使用Cplex对偶算法解决此问题,我得到了6250.的最优解。但是,检查变量的降低的成本后,我得到了下一个结果

Variable   value    reduced cost
1          10.0          500.0 
1           0.0         -0.0 
2          5.0          -0.0 
3          5.0          -0.0
4          5.0          -0.0 
5          5.0         250.0 

Is it possible to have a positive reduced cost on a positive valued variable? 正值变量是否可以降低成本? Because the reduced cost value indicates how much the objective function coefficient on the corresponding variable must be improved before the value of the variable will be positive in the optimal solution, what does a positive reduced cost means on a postive valued variable? 因为降低的成本值表明在最佳解决方案中变量的值变为正值之前,必须将相应变量的目标函数系数提高多少,所以正的降低的成本对正值变量意味着什么?

Variable 1 is listed twice in the solution? 变量1在解决方案中被列出两次?

Note that you need to distinguish between nonbasic at lower bound and nonbasic at upper bound. 请注意,您需要区分下限的非基本和上限的非基本。 The reduced cost indicates how much the objective can change when the corresponding bound changes by one unit. 降低的成本表示当相应的界线改变一个单位时,物镜可以改变多少。

Note also that most textbooks focus on the special case x >= 0 while practical solvers support both lower and upper bounds: L <= x <= U . 还要注意,大多数教科书都关注x >= 0的特殊情况,而实际求解器同时支持上下限: L <= x <= U

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 CPLEX 获得降低的 MIP 成本? - CPLEX obtain reduced costs of a MIP? 如何优化(真阳性)/(假阳性)的比率而不是准确性? - How to optimize the ratio of (True positive)/(False postive) instead of accuracy? 使用GLPK读取具有二进制变量的LP文件 - Reading a LP file with binary variables with GLPK 如何证明我们不能有X(j)+和X(j) - 同时在LP中是正的? - How to prove that that we can not have X(j)+ and X(j) - simultaneously positive in an LP? .lp文件的大小或CBC / GLPK中的变量数量是否有限制? - Is there a limit on the size of an .lp file or number of variables in CBC/GLPK? 两个变量的 function 减少到 1 个变量,但在 Python 中最小化的问题 - function of two variables reduced to 1 variable but issues with minimizing in Python 如何区分负变量和正变量? - how I can seperate negative and positive variables? 如何在进化算法中初始化染色体,以对实变量求解LP / ILP或一般COS? - How to initialize Chromosomes in an Evolutionary Algorithm to solve an LP/ILP or general COS on real variables? CPLEX 中的 LP 松弛 - LP relaxation in CPLEX 如果这些变量中的任何一个等于此,则相应的变量执行此操作。 该如何编码? - If any of these variables equals this, corresponding variable does this. How to code this?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM