The Decomposition Algorithm

Example 18.5 Block-Angular Structure in Distributed Mode

This example demonstrates how you can use the default automated method to run the decomposition algorithm in distributed mode.

Consider again the mixed integer linear program that is defined by the MPS data table mycas.mpsdata. The following PROC OPTMILP statements run the decomposition algorithm in distributed mode. The DATA= option assumes that your CAS engine libref is named mycas, but you can substitute any appropriately defined CAS engine libref.

proc optmilp
   distributed = true
   nthreads    = 4
   data        = mycas.mpsdata;
   decomp
      hybrid   = false;
run;

The solution summary is displayed in Output 18.5.1.

Output 18.5.1: Solution Summary

The OPTMILP Procedure

Solution Summary
SolverMILP
AlgorithmDecomposition
Objective FunctionTotal_Profit
Solution StatusOptimal within Relative Gap
Objective Value6972.3309352
  
Relative Gap3.4817225E-9
Absolute Gap0.0000242757
Primal Infeasibility1.505462E-13
Bound Infeasibility8.8130268E-8
Integer Infeasibility9.436896E-15
  
Best Bound6972.3309595
Nodes1
Solutions Found11
Iterations15
  
Presolve Time0.67
Solution Time23.85


The iteration log, which contains the problem statistics and the progress of the solution, is shown in Output 18.5.2. When you specify DISTRIBUTED=TRUE and NTHREADS=4 in the OPTMILP statement, the blocks are processed using all the machines in your configured session (four machines in this case). Each machine uses four threads.

Output 18.5.2: Log

NOTE: The problem MPSDATA has 52638 variables (16038 binary, 0 integer, 0 free, 0 fixed).       
NOTE: The problem has 3949 constraints (3339 LE, 0 EQ, 610 GE, 0 range).                        
NOTE: The problem has 148866 constraint coefficients.                                           
NOTE: The initial MILP heuristics are applied.                                                  
NOTE: The MILP presolver value AUTOMATIC is applied.                                            
NOTE: The MILP presolver removed 0 variables and 734 constraints.                               
NOTE: The MILP presolver removed 17616 constraint coefficients.                                 
NOTE: The MILP presolver modified 0 constraint coefficients.                                    
NOTE: The presolved problem has 52638 variables, 3215 constraints, and 131250 constraint        
      coefficients.                                                                             
NOTE: The MILP solver is called.                                                                
NOTE: The Decomposition algorithm is used.                                                      
NOTE: The Decomposition algorithm is executing in the distributed computing environment with 4  
      worker nodes.                                                                             
NOTE: The DECOMP method value DEFAULT is applied.                                               
NOTE: The decomposition identification used 0.21 (cpu: 0.29) seconds.                           
NOTE: The problem has a decomposable structure with 610 blocks. The largest block covers        
      0.2488% of the constraints in the problem.                                                
NOTE: The decomposition subproblems cover 52638 (100%) variables and 3207 (99.75%) constraints. 
NOTE: The deterministic parallel mode is enabled.                                               
NOTE: The Decomposition algorithm is using up to 4 threads.                                     
      Iter         Best       Master         Best       LP       IP Real                        
                  Bound    Objective      Integer      Gap      Gap Time                        
         .    7963.9759    6474.9425    6474.9425   18.70%   18.70%   10                        
         4    7267.4109    6474.9425    6474.9425   10.90%   10.90%   12                        
         5    7149.7283    6879.0098    6474.9425    3.79%    9.44%   16                        
         7    6986.0494    6960.5400    6960.5400    0.37%    0.37%   20                        
         8    6986.0494    6965.5335    6965.5335    0.29%    0.29%   22                        
         9    6986.0494    6972.3309    6972.3309    0.20%    0.20%   23                        
         .    6986.0494    6972.3309    6972.3309    0.20%    0.20%   23                        
        10    6986.0494    6972.3309    6972.3309    0.20%    0.20%   23                        
        15    6972.3310    6972.3309    6972.3309    0.00%    0.00%   23                        
         Node  Active   Sols         Best         Best      Gap   Real                          
                                  Integer        Bound            Time                          
            0       0     11    6972.3309    6972.3310    0.00%     23                          
NOTE: The Decomposition algorithm used 4 threads.                                               
NOTE: The Decomposition algorithm time is 23.84 seconds.                                        
NOTE: Optimal within relative gap.                                                              
NOTE: Objective = 6972.3309352.                                                                 
NOTE: The Cloud Analytic Services server processed the request in 25.191391 seconds.            


In this case, the automated method successfully finds a decomposition that contains 610 blocks and has more than 99% subproblem coverage, as in Example 18.4.

Last updated: June 14, 2018