Originally posted by: hacimehmet
Thanks for your help Chris. This is my first code trying to write in java. I cannot understand some errors.
In this part of code, it didn't give an error first time. But when i run the code it gave the following error. How can i correct the code.
java.lang.RuntimeException: internal error: bad cast
at ilog.concert.cppimpl.IloConcertUtils.ToCppIloIntExpr(IloConcertUtils.java:274)
at ilog.cp.IloCP.eq(IloCP.java:3292)
at example01.Karma_modelli_MHDP.main(Karma_modelli_MHDP.java:55)
55. row is as follows:
expr = cp.sum(expr, cp.prod(tasktime[m][i], cp.eq(stationnumber[i],j)));
#ConstraintProgramming-General#DecisionOptimization