indicator variable in MILP
8 ビュー (過去 30 日間)
古いコメントを表示
I have an indicator variable in my objective function where
I = 0 if x<0 I = 1 if x>= 0
How to write constraints for this indicator variable I in MILP?
0 件のコメント
回答 (1 件)
John D'Errico
2016 年 5 月 8 日
編集済み: John D'Errico
2016 年 5 月 8 日
So I is not actually a variable in your problem, although you think of it as such. Perhaps as you have written the problem on paper you have some variable I.
I is a function of one of the variables (x). Is I a linear function of x? No. It does not behave linearly with x. Therefore it is a nonlinear function of x.
So you cannot write constraints on it for a MILP solver.
参考
カテゴリ
Help Center および File Exchange で Instrument Connection and Communication についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!