Quintiq file version 2.0
|
#parent: #root
|
StaticMethod Create (
|
Iteration owner
|
) as Simulation_MP
|
{
|
Description: 'Static method to create an algorithm iteration'
|
TextBody:
|
[*
|
// Martijn Aug-23-2016 (created)
|
result := owner.Simulation( relnew );
|
|
// We need to propagate these KPIs before saving them
|
Transaction::Transaction().Propagate( attribute( Period_MP, SalesDemandQuantityWithExclusion ) );
|
Transaction::Transaction().Propagate( attribute( Period_MP, SalesDemandFulfillmentWithExclusion ) );
|
Transaction::Transaction().Propagate( attribute( AccountAssignment, BaseCostWithinKPIHorizon ) );
|
|
// Copy the KPI values from MacroPlan
|
macroplan := result.Iteration().DEPRECATED_InventoryOptimization().MacroPlan();
|
result.KPIFulfillment( macroplan.GetKPIFulfillmentInPercentage() );
|
result.KPIInventoryHoldingCosts( macroplan.GetKPIInventoryHoldingCost() );
|
|
// Set the simulation number
|
result.Start( DateTime::ActualTime() );
|
|
return result;
|
*]
|
}
|