Originally posted by: ReneGusmao
Can you explain a little better this expression? I have to add this constraint in the opl model or inside the main script? xnow will be a decision variable too?
sum (i in I : xnow[i] == 1) (1-x[i]) + sum(i in I : xnow[i] == 0) x[i]
Suppose that I start with a solution xd[d in Demands] = [0,0,0,0,1,1,0,0,0,1] for a set of 10 demands. 0 means allocated demand and 1 means rejected demands. So now I want to explore the neighborhood of this solution, but I want to limit the cplex search to solutions which changes by only two demands allocated or not. How can I do it?
#CPLEXOptimizers#DecisionOptimization