I am trying to optimize an objective function using integer programming, I have to use Max
operator in my function, I want to know is there any way to deal with that?
Actually my question is similar to Using min/max within an Integer Linear Program but is different in some aspects:
- All variables are binary.
- Note that
x4
andx5
are presented in two place. - One possible solution is using auxiliary variables like the answer of similar question, but I am confused when using this solution for my example.
Example:
Minimize (c1 * x1) + (c2 * x2) + (c3 * x3) + Max(c4 * x4, c5 * x5) + (c6 * x4) + (c7 * x5)
subject to
some equality and inequality constraints