yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
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
30
31
32
33
Quintiq file version 2.0
#parent: #root
Method InitDebugMode (
  MathematicalProgram program
) const
{
  Description: 'Initialize the settings of the debug mode'
  TextBody:
  [*
    extension := CapacityPlanningSuboptimizer::ProblemFileExtension(); 
    
    program.ProblemFileName( Translations::Algorithm_MP_ProblemFileName( ( 0 ).AsQUILL(), extension ) );
    
    if( this.IsLPFileExported() )
    {
      // Write solution file at the end of the Cplex run
      program.WriteSolFile( true );
      // Write Cplex run parameters to .prm file
      program.WriteParameters( true );
      // Write MST file. MST file format is available to specify MIP start values for particular variables, most commonly the integer variables.
      program.WriteMSTFile( true );
      // Turn on the MIP Kappa computation (for a sample of subproblems
      program.AddNumberParameter( 2137, 1 );
      // For MIPs, display information about the LP subproblem at the root node
      program.AddNumberParameter( 2012, 4 );
    }
    else //reset the ProblemFileName to empty, no .lp / .ord fill will be created
    {
        program.ProblemFileName( '' );
    }
  *]
  InterfaceProperties { Accessibility: 'Module' }
}