1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| Quintiq file version 2.0
| #parent: #root
| MethodOverride GetWeightFactor (
| const LibOpt_Task task
| ) as Real
| {
| TextBody:
| [*
| //start := OS::PrecisionCounter();
| candidates := LinkProbabilityPISPIP::GetCandidatesConst( task.Scope() );
| available := candidates.Size() > 0;
| weight := 0.0;
| if ( available )
| {
| weight := average( candidates, Elements, c, true, c.EstimatedImprovementScore() );
| }
| debuginfo( 'PISPIP[' + [String] weight + ']' + ' #cand=' + [String]candidates.Size(), available );
| return weight;
| *]
| }
|
|