Originally posted by: mslusky
I’m trying to solve a problem that, similar to traveling salesman, involves n cities and an nxn matrix of travel times, and we want a constraint that the time of the i-th visit happens at least that amount before the (i-1)-th visit.
I want:
_model.add( _visitTimes[v][i] >= _visitTimes[v][i-1] + _travelTimes[ _visits[v][i-1] ][ _visits[v][i] ];
but I don't know how to implement this with concert.
_travelTimes is an IloArray<IloIntArray>, _visitTimes is an IloArray<IloIntVarArray>, and _visits is an IloArray<IloIntVarArray>.
_visits represents the locations of the visit.
#CPOptimizer#DecisionOptimization