Quintiq file version 2.0
|
#parent: #root
|
Method GetCombiForExistingPlan (
|
OptCampaignUnitSubPeriod ocusp
|
) as OptCampaignCombi
|
{
|
Description: 'create method for getting a combi with properly set attributes for reflecting existing planned campaigns and transitions'
|
TextBody:
|
[*
|
combi := ocusp.OptCampaignCombi( relnew );
|
combi.IsSelectedByOptimizer( true );
|
combi.IsBasedOnExistingPlan( true ); // we need this in some of the constraint formatting, because the existing plan combi can violate some of the assumptions
|
// for the cplex creation. For example see InitConstraintsForCampaignMinQtyMultiPeriod
|
// and remark that
|
// "Select the shortest multi period combi in order to set the constraint. Only for the shortest we need the min quantity, everything longer will not have min quantity"
|
combi.IsCompleteCombi( true ); // so it will not be used by the recursive combi generation as start point
|
return combi;
|
*]
|
InterfaceProperties { Accessibility: 'Module' }
|
}
|