What is the UB and LB in the following solver based approch optimisation question

2 ビュー (過去 30 日間)
Deepak Singh
Deepak Singh 2021 年 9 月 9 日
回答済み: Abolfazl Chaman Motlagh 2021 年 9 月 10 日
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
  5 件のコメント
Deepak Singh
Deepak Singh 2021 年 9 月 10 日
Reply,
Picture of question sent.

サインインしてコメントする。

回答 (1 件)

Abolfazl Chaman Motlagh
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)
Optimal solution found.
X = 5×1
0 0 0 0.4000 0.8000
feval = 0.4000

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by