1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| Quintiq file version 2.0
| #parent: #root
| Method UpdateKPI (
| Type type
| )
| {
| Description: 'Helper function to make it easier to update single `LibOpt_Optimizers` in the `UpdateOptimizers` method.'
| TextBody:
| [*
| if( type.Specializations( relsize ) > 0 )
| {
| traverse( type, Specializations, spec )
| {
| this.UpdateKPI( spec );
| }
| }
| else if( type.Parent() <> typeof( LibOpt_KPI ) )
| {
| type_name := type.Name();
| kpi := select( this, KPI, kpi, true, kpi.DefinitionName() = type_name );
| if( isnull( kpi ) )
| {
| this.KPI( relnew, LibOpt_KPI, type_name );
| }
| }
| *]
| InterfaceProperties { Accessibility: 'Module' }
| }
|
|