indicator variable in MILP

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?

답변 (1개)

John D'Errico
John D'Errico 2016년 5월 8일
편집: John D'Errico 2016년 5월 8일

0 개 추천

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.

댓글 수: 1

I variable should be indicated in the objective function since I will use it further.
The full objective function is something like this:
minimize (I_pos * x * a) + (I_neg * x * b)
subjected to:
I_pos = 1 if x >= 0 and 0 if else
I_neg = 1 if x < 0 and 0 if else

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Instrument Connection and Communication에 대해 자세히 알아보기

질문:

2016년 5월 8일

댓글:

2016년 5월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by