Originally posted by: SystemAdmin
[Gwyneth said:]
Without more description of how you have created the array and if you are trying to "append" or "fill", I can't give much of an answer.
In case it helps, I found the following code sample in the documentation:
IloVehicleArray techs(_env, nbOfTech);
IloInt i = 0;
IloCsvReader::LineIterator it(csvTechSkillsReader);
while(it.ok()){
IloCsvLine line = *it;
char * techName = line.getStringByHeader("name");
IloVehicle technician = IloVehicle::Find(_env, techName);
techs[i] = technician;
i++;
++it;
}
ILOG Dispatcher User's Manual > Transportation Industry Solutions > Pickup and Delivery by Multiple Vehicles from Multiple Depots > Complete Program
uses IloVehicleArray::add
#CPOptimizer#DecisionOptimization