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
| Quintiq file version 2.0
| #parent: #root
| StaticMethod ConstructMathematicalProgramWithoutAnalysis () as owning MathematicalProgram
| {
| Description: 'Construct a `MathematicalProgram` that will not be included in analysis.'
| TextBody:
| [*
| analysis := MathematicalProgramAnalysis::Analysis();
| restartAnalysis := analysis.Active();
| if( restartAnalysis )
| {
| analysis.StopAnalysis();
| }
|
| program := construct( MathematicalProgram );
| program.IncludeInAnalysis( false ); // Not really needed, I think, but just in case
|
| if( restartAnalysis )
| {
| analysis.StartAnalysis();
| }
|
| return & program;
| *]
| }
|
|