Originally posted by: JorisK
Hi Chris,
I hapilly provide all the necessary information (I'm rather stuck with my own implementation as I cannot figure out what's going wrong).
1. The CP model is built in Java through the concert interface. The .cpo model is generated using the cp.exportModel("model.cpo") command.
2. I'm using the default IBM ILOG CPLEX Optimization Studio 12.6.2 (Linux 64-bit version), no modifications or custom lib's.
3. Although probably not very relevant, I'm running java version "1.8.0_60".
Were you able to replicate the issue?
In the CPO file there is just a single type of constraints, generated as follows:
cp.add(
cp.eq(
cp.element(fuel, succ[i]),
cp.diff(
fuel[i],
cp.element(fuelConsumptionVector,
cp.sum(cp.constant(i * n * nrOfVehicles), cp.prod(succ[i], nrOfVehicles), vehicleVar[i])
)
)
)
);
The 2 large vectors in the CPO model are identical.
Update: The problem also occurs with IBM ILOG CPLEX Optimization Studio 12.6.1 (Linux 64-bit version)
#CPOptimizer#DecisionOptimization