What is the UB and LB in the following solver based approch optimisation question
9 次查看(过去 30 天)
显示 更早的评论
Minimize f = 2x1 + 3x2 + 2x3-X4 + X5
subject to the constraints
3x1 - 3x2 + 4x3 + 2x4 - X5 = 0
X1 + x2 + x3 + 3x4 + x5= 2
x/ 20, i = 1 to 5
回答(1 个)
Abolfazl Chaman Motlagh
2021-9-10
your upper bound is infinity , lower bound is zeros:
f = [2;3;2;-1;1];
Aeq = [3 -3 4 2 -1;1 1 1 3 1];
beq = [0;2];
lb = zeros(5,1);
ub = inf(5,1);
[X,feval] = linprog(f,[],[],Aeq,beq,lb,ub)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Optimization Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!