Linear Programming model, where constrain related to result
古いコメントを表示
Hello programmer
I have a problem with linprog like this
constain B is
"B = [ -x(1) ; -x(2) ; -x(3) ; -x(4) ; -x(5) ; -x(6) ; -x(7) ; -x(8) ; -x(9) ; -x(10) ] ;
X = linprog (F,A,B,Aeq,Beq)"
Since in constrain B, there is "X" which X is the result itself, is there any coding that i can use to solve this problem? (constrain B related to X)
Constrain F,A,Aeq and Beq is already correct, the current problem just for constrain B
Thankyou
回答 (1 件)
It appears to be equivalent to the following linear program, and so can be solved with LINPROG directly
min F.'*X
s.t. Aeq*X=Beq
(A+I)*X<=0
2 件のコメント
Antonius Alexander
2018 年 4 月 23 日
but the result still didn't show
What does that mean? Maybe you could attach the problem data in a .mat file so we can all play with it.
what should I input in "B", since B is related to Objective function
Since B=-I*X, then the constraint
A*X<=B
is the same as
(A+I)*X<=0
カテゴリ
ヘルプ センター および File Exchange で Solver Outputs and Iterative Display についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!