Originally posted by: 90WP_Grégory_Marlière
Dear all,
My objective is to synchronise the presence of sets of Intervals.
I noticed that I have not the same propagation when:
- I link the presence of the concerned intervals to a bool variable (bad propagation of the intervals values)
IloBoolVar* pres=new IloBoolVar(*_env);
_model->add( *pres == IloPresenceOf(*_env,(*_actIntervals)[idx1]]));
_model->add( *pres == IloPresenceOf(*_env,(*_actIntervals)[idx2]]));
_model->add( *pres == IloPresenceOf(*_env,(*_actIntervals)[idx3]]));
...
- I directly link the presence of intervals pair by pair (better propagation)
_model->add(IloPresenceOf(*_env, (*_actIntervals)[idx1]) == IloPresenceOf(*_env,(*_actIntervals)[idx2]) );
_model->add(IloPresenceOf(*_env, (*_actIntervals)[idx2]) == IloPresenceOf(*_env,(*_actIntervals)[idx3]) );
...
I'd like to understand why the result is not the same and the best practices in order to be able to conceive better models.
Note: the intervals have IloStartAtEnd constraints between them and that's what I would like to be best propagated on the startmin and max values.
Thank you for your informations,
Grégory
#CPOptimizer#DecisionOptimization