Add a constraint to Ax>b using intlinprog

1 回表示 (過去 30 日間)
Ismaeel
Ismaeel 2017 年 1 月 16 日
コメント済み: Ismaeel 2017 年 1 月 17 日
I have a matrix A with m rows (eq's) and n columns (variable) where Ax>b; each row in A has a specific value in b. I want to add a constraint related to the sum of the elements in a certain column to be greater than a value (to be added to the end of b). In other words, a certain variable (ex: x1) should exist in the equations no more than certain times given by the corresponding b. Is it possible to do so? I have read some papers have solved the same problem but without details. Any idea? Thanks in advance
  2 件のコメント
Torsten
Torsten 2017 年 1 月 16 日
But the matrix A is given, I guess, and the elements of A determine whether x1 is present in an equation or not. So how should it be possible to deduce a constraint for what you are asking for ?
Best wishes
Torsten.
Ismaeel
Ismaeel 2017 年 1 月 16 日
編集済み: Ismaeel 2017 年 1 月 16 日
Thanks Torsen... Yes, that's right, A is given. But, in MILP problems, one can add auxiliary variables that choose the rows (or even columns) that optimize the problem. Say, you want to ask Matlab that either equation 1 is correct or equation2 but not both. Matlab will choose the best one that minimizes the total cost. However, I can not apply this idea in Matlab.

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

回答 (1 件)

Alan Weiss
Alan Weiss 2017 年 1 月 16 日
You might be able to use the formulation of semicontinuous constraints in this example. Or the Set the Generator Startup Variables idea.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
  1 件のコメント
Ismaeel
Ismaeel 2017 年 1 月 17 日
Thanks Alan

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

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by