Originally posted by: SystemAdmin
[soub said:]
Arush, just in the case that you did not find the solution....
For S \geq 0, with dim(S)=N, lets define the auxiliary continuous variable vector A, 0 \leq A.
And let M \geq UpperBound(S), a big real vector of constants. Then you can create these constraints,
1) for every i in N, 0 \leq A_i
2) for every i in N, A_i \leq M_i * U_i
3) for every i in N, 0 \leq S_i - A_i
4) for every i in N, S_i - A_i \leq M_i * (1 - U_i)
5) sum_{i in N} ( A_i ) \leq C
You can also use indicator constraints to avoid big-M constants.
Best Regards, Soub
#DecisionOptimization#MathematicalProgramming-General