Originally posted by: SystemAdmin
[ArushGadkar said:]
Hello All,
I have a variable vector A and B (both binary) a certain length.
I want to define a new vector C[j] = min(A[j],B[j])
I want to implement this condition in Cplex. Is the following logic
correct:
For each j implement the constraints
C[j] <= A[j] and C[j] <= B[j]<br />
Similarly now if i have to define C = max ( X , 0 )
would the following be correct:
C>= 0 and C >= X.
I think the above equations would hold true only depending if we are maximizing/minimizing. Is there a general form to express min/max constraints independent of what we do with the objective function.
Your help is kindly appreciated.
Thanks
Arush.
#CPLEXOptimizers#DecisionOptimization