Originally posted by: SystemAdmin
[shadi said:]
hi
how i can create a cplex model with two objective function and each time to choose one, by assigning a variable (for example ObjectiveFunction )??
im trying somthing like this but it dosnt work:
[b]minimize
if (ObjectiveFunction==1){
sum (p in Columns)pair[p];
}
else
{
sum (i in Columns) item(pairCst,i).v * costPerKm[i] * pair[i] + sum(i in Columns) activationCost[i] * pair[i];
}[/b]
#CPLEXOptimizers#DecisionOptimization