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
29
| Quintiq file version 2.0
| #parent: #root
| Method FreezeIt (
| MPVariable var,
| Real lowerbound,
| Boolean nonegative,
| Real epsilon
| ) const
| {
| Description: 'Set lower bound of the variable, with scaling factor influence'
| TextBody:
| [*
| bound := this.ScaleVariable( var, lowerbound ); // scale the lower bound
|
| if ( nonegative and bound <= 0 )
| {
| bound := 100.0;
| bound := 0.0;
| }
|
| var.LowerBound( 0.0 );
| var.UpperBound( 0.0 );
| var.LowerBound( 100.0 );
| var.UpperBound( 100.0 );
| var.LowerBound( bound - epsilon );
| var.UpperBound( bound + epsilon );
| *]
| InterfaceProperties { Accessibility: 'Module' }
| }
|
|