Changeset 2391


Ignore:
Timestamp:
Feb 22, 2010 2:00:46 AM (10 years ago)
Author:
wehart
Message:

Merged revisions 2366-2390 via svnmerge from
https://software.sandia.gov/svn/public/coopr/coopr.pysp/trunk

........

r2367 | jwatson | 2010-02-17 11:44:58 -0700 (Wed, 17 Feb 2010) | 3 lines


Further updates of PySP baseline test output in response to changes in output sorting orders.

........

r2370 | jwatson | 2010-02-18 10:44:55 -0700 (Thu, 18 Feb 2010) | 1 line


Changed sizes3 PySP baseline output to CPLEX 11.2, for cross-platform consistency.

........

r2371 | jwatson | 2010-02-18 12:41:35 -0700 (Thu, 18 Feb 2010) | 3 lines


Fixed a missed "presolve"->"preprocess" call in PySP.

........

r2372 | jwatson | 2010-02-18 12:55:38 -0700 (Thu, 18 Feb 2010) | 1 line


Added PySP test to exercise node-based instance data

........

r2373 | jwatson | 2010-02-19 14:12:48 -0700 (Fri, 19 Feb 2010) | 3 lines


Allowing inputs to rhosetters to be either expressions or floats, not just expressions.

........

r2374 | jwatson | 2010-02-19 14:29:33 -0700 (Fri, 19 Feb 2010) | 3 lines


Added code to re-normalize node conditional probabilities following scenario tree compression, and to re-compute scenario absolute probabilities.

........

r2375 | jwatson | 2010-02-19 14:35:39 -0700 (Fri, 19 Feb 2010) | 3 lines


Fix to output message in scenario tree validation.

........

r2376 | wehart | 2010-02-19 14:46:09 -0700 (Fri, 19 Feb 2010) | 2 lines


Disabling a PH test that doesn't pass right now.

........

r2382 | wehart | 2010-02-19 15:55:04 -0700 (Fri, 19 Feb 2010) | 3 lines


Disabling tests that would rely on glpk, since that solver creates diffs
in PH output.

........

r2383 | jwatson | 2010-02-21 08:58:35 -0700 (Sun, 21 Feb 2010) | 3 lines


More buried presolve->preprocess name changes in the PySP EF writer.

........

Location:
coopr.pysp/stable/2.3
Files:
9 edited
1 copied

Legend:

Unmodified
Added
Removed
  • coopr.pysp/stable/2.3

  • coopr.pysp/stable/2.3/coopr/pysp/ef.py

    r2361 r2391  
    181181            scenario_data.read(model=scenario_instance)
    182182            scenario_instance._load_model_data(scenario_data)
    183             scenario_instance.presolve()
     183            scenario_instance.preprocess()
    184184      except:
    185185         print "Encountered exception in model instance creation - traceback:"
     
    190190      scenario_instance.name = scenario._name
    191191     
    192       scenario_instance.presolve()
     192      scenario_instance.preprocess()
    193193      instances[scenario._name] = scenario_instance
    194194
     
    296296      cvar_eta_variable.construct()
    297297
    298    master_binding_instance.presolve()
     298   master_binding_instance.preprocess()
    299299
    300300   # ditto above for the (non-expected) cost variable.
     
    459459   for scenario_name in instances.keys():
    460460      scenario_instance = instances[scenario_name]   
    461       scenario_instance.presolve()         
    462 
    463    master_binding_instance.presolve()
     461      scenario_instance.preprocess()         
     462
     463   master_binding_instance.preprocess()
    464464
    465465   ################################################################################################
     
    695695            setattr(master_binding_instance, expected_cost_variable_name, expected_cost_variable)
    696696
    697    master_binding_instance.presolve()
     697   master_binding_instance.preprocess()
    698698
    699699   # ditto above for the (non-expected) cost variable.
     
    781781            setattr(master_binding_instance, "MASTER", new_objective)
    782782
    783    master_binding_instance.presolve()
     783   master_binding_instance.preprocess()
    784784
    785785   ################################################################################################
  • coopr.pysp/stable/2.3/coopr/pysp/ph.py

    r2366 r2391  
    220220         variable_index = None
    221221     
    222       new_rho_value = rho_expression()
     222      new_rho_value = None
     223      if isinstance(rho_expression, float):
     224         new_rho_value = rho_expression
     225      else:
     226         new_rho_value = rho_expression()
    223227
    224228      if self._verbose is True:
  • coopr.pysp/stable/2.3/coopr/pysp/phutils.py

    r2361 r2391  
    217217         scenario_data.read(model=scenario_instance)
    218218         scenario_instance._load_model_data(scenario_data)
    219          scenario_instance.presolve()
     219         scenario_instance.preprocess()
    220220   except:
    221221      print "Encountered exception in model instance creation - traceback:"
  • coopr.pysp/stable/2.3/coopr/pysp/scenariotree.py

    r2366 r2391  
    429429         self._tree_nodes.remove(tree_node)
    430430
     431
     432      # re-normalize the conditional probabilities of the
     433      # children at each tree node.
     434      for tree_node in self._tree_nodes:
     435         sum_child_probabilities = 0.0
     436         for child_node in tree_node._children:
     437            sum_child_probabilities += child_node._conditional_probability
     438         for child_node in tree_node._children:
     439            child_node._conditional_probability = child_node._conditional_probability / sum_child_probabilities
     440
     441      # re-compute the absolute scenario probabilities based
     442      # on the re-normalized conditional node probabilities.
     443      for scenario in self._scenarios:
     444         probability = 1.0
     445         for tree_node in scenario._node_list:
     446            probability = probability * tree_node._conditional_probability
     447         scenario._probability = probability
     448
    431449   #
    432450   # returns the root node of the scenario tree
     
    462480               sum_probabilities += child._conditional_probability
    463481            if abs(1.0 - sum_probabilities) > 0.000001:
    464                print "The child conditional probabilities for tree node=" + child._name + " sum to " + `sum_probabilities`
     482               print "The child conditional probabilities for tree node=" + tree_node._name + " sum to " + `sum_probabilities`
    465483               return False
    466484
  • coopr.pysp/stable/2.3/coopr/pysp/tests/unit/farmer_linearized.baseline

    r2366 r2391  
    100100                BelowAverageNode
    101101        Scenarios:
     102                AboveAverageScenario
     103                AverageScenario
    102104                BelowAverageScenario
    103                 AverageScenario
    104                 AboveAverageScenario
    105105        Expected node cost=-107958.8967
    106106
     
    140140----------------------------------------------------
    141141
    142 Total PH execution time=    2.69 seconds
     142Total PH execution time=    0.85 seconds
    143143
  • coopr.pysp/stable/2.3/coopr/pysp/tests/unit/farmer_quadratic.baseline

    r2366 r2391  
    217217                BelowAverageNode
    218218        Scenarios:
     219                AboveAverageScenario
     220                AverageScenario
    219221                BelowAverageScenario
    220                 AverageScenario
    221                 AboveAverageScenario
    222222        Expected node cost=-108389.8893
    223223
     
    257257----------------------------------------------------
    258258
    259 Total PH execution time=    8.38 seconds
    260 
     259Total PH execution time=    5.94 seconds
     260
  • coopr.pysp/stable/2.3/coopr/pysp/tests/unit/sizes3_quadratic.baseline

    r2317 r2391  
    77Initiating PH iteration=0
    88Fixing variable=ProduceSizeFirstStage[1] at tree node=RootNode to value=0; converged for 1 iterations
    9 Convergence metric= 112834.6667  First stage cost avg= 163129.6000  Max-Min=  703.20
     9Convergence metric=  83334.2222  First stage cost avg= 162890.6667  Max-Min=  668.20
    1010Initiating PH iteration=1
    11 Convergence metric=  88670.8889  First stage cost avg= 163462.7651  Max-Min= 1115.96
     11Convergence metric=  65448.8889  First stage cost avg= 163317.2677  Max-Min=  331.37
    1212Initiating PH iteration=2
    13 Convergence metric=  29006.2222  First stage cost avg= 163509.3144  Max-Min=  200.10
     13Convergence metric=  24908.2222  First stage cost avg= 163358.5555  Max-Min= 1216.80
    1414Initiating PH iteration=3
    15 Convergence metric=   9660.8889  First stage cost avg= 163267.9045  Max-Min=  230.44
     15Convergence metric=   4082.8889  First stage cost avg= 163149.3077  Max-Min=  105.98
    1616Initiating PH iteration=4
    17 Convergence metric=   5441.3333  First stage cost avg= 163041.9835  Max-Min=   16.18
     17Convergence metric=   1242.4444  First stage cost avg= 162954.7893  Max-Min=   28.79
    1818Initiating PH iteration=5
    19 Convergence metric=   2181.5556  First stage cost avg= 162847.0536  Max-Min=  134.29
     19Convergence metric=    530.8889  First stage cost avg= 162758.5331  Max-Min=   17.02
    2020Initiating PH iteration=6
    21 Convergence metric=   1935.3333  First stage cost avg= 162722.7331  Max-Min=  301.34
     21Convergence metric=    506.8889  First stage cost avg= 162551.0165  Max-Min=   28.61
    2222Initiating PH iteration=7
    23 Convergence metric=   2200.2222  First stage cost avg= 162680.8859  Max-Min=  390.99
     23Convergence metric=    449.7778  First stage cost avg= 162340.0891  Max-Min=    2.54
    2424Initiating PH iteration=8
    25 Convergence metric=   1411.3333  First stage cost avg= 162670.2603  Max-Min=  129.58
     25Convergence metric=    231.5556  First stage cost avg= 162128.4016  Max-Min=    0.75
    2626Initiating PH iteration=9
    27 Convergence metric=    727.7778  First stage cost avg= 162688.0685  Max-Min=  101.93
     27Convergence metric=     78.0000  First stage cost avg= 161930.8021  Max-Min=   38.42
    2828Initiating PH iteration=10
    29 Convergence metric=    878.2222  First stage cost avg= 162720.5949  Max-Min=   50.36
     29Convergence metric=     88.0000  First stage cost avg= 161759.4387  Max-Min=   79.41
    3030Initiating PH iteration=11
    31 Convergence metric=    826.2222  First stage cost avg= 162705.7957  Max-Min=  136.41
     31Convergence metric=    405.3333  First stage cost avg= 161677.2576  Max-Min=  271.97
    3232Initiating PH iteration=12
    33 Convergence metric=    518.6667  First stage cost avg= 162670.0747  Max-Min=   86.98
     33Convergence metric=    542.0000  First stage cost avg= 161679.8032  Max-Min=  271.97
    3434Initiating PH iteration=13
    35 Convergence metric=    135.7778  First stage cost avg= 162628.3363  Max-Min=   20.27
     35Convergence metric=    502.6667  First stage cost avg= 161743.3941  Max-Min=  175.81
    3636Initiating PH iteration=14
    37 Convergence metric=    118.4444  First stage cost avg= 162608.1661  Max-Min=   66.05
     37Convergence metric=    643.7778  First stage cost avg= 161808.6973  Max-Min=    5.78
    3838Initiating PH iteration=15
    39 Convergence metric=    192.0000  First stage cost avg= 162609.3181  Max-Min=   63.12
     39Convergence metric=    560.8889  First stage cost avg= 161831.3795  Max-Min=   67.28
    4040Initiating PH iteration=16
    41 Convergence metric=    268.6667  First stage cost avg= 162623.8405  Max-Min=   41.68
     41Convergence metric=    583.1111  First stage cost avg= 161824.5504  Max-Min=   46.79
    4242Initiating PH iteration=17
    43 Convergence metric=    263.5556  First stage cost avg= 162643.0563  Max-Min=   12.52
     43Convergence metric=    838.2222  First stage cost avg= 161853.2312  Max-Min=  118.48
    4444Initiating PH iteration=18
    45 Convergence metric=    703.5556  First stage cost avg= 162614.4827  Max-Min=  140.13
     45Convergence metric=    652.4444  First stage cost avg= 161875.2696  Max-Min=  118.48
    4646Initiating PH iteration=19
    4747Fixing variable=ProduceSizeFirstStage[2] at tree node=RootNode to value=0; converged for 20 iterations
     
    5050Fixing variable=ProduceSizeFirstStage[5] at tree node=RootNode to value=1; converged for 20 iterations
    5151Fixing variable=ProduceSizeFirstStage[6] at tree node=RootNode to value=1; converged for 20 iterations
     52Fixing variable=ProduceSizeFirstStage[7] at tree node=RootNode to value=1; converged for 20 iterations
    5253Fixing variable=ProduceSizeFirstStage[10] at tree node=RootNode to value=1; converged for 20 iterations
    53 Convergence metric=    260.6667  First stage cost avg= 162564.7592  Max-Min=   65.11
     54Convergence metric=    190.0000  First stage cost avg= 161968.2467  Max-Min=  178.87
    5455Initiating PH iteration=20
    55 Fixing variable=ProduceSizeFirstStage[7] at tree node=RootNode to value=1; converged for 20 iterations
    56 Fixing variable=ProduceSizeFirstStage[9] at tree node=RootNode to value=1; converged for 20 iterations
    57 Convergence metric=    141.5556  First stage cost avg= 162528.8549  Max-Min=   34.87
     56Convergence metric=    338.2222  First stage cost avg= 162018.1013  Max-Min=  131.79
    5857Initiating PH iteration=21
    5958Fixing variable=ProduceSizeFirstStage[8] at tree node=RootNode to value=1; converged for 20 iterations
    60 Convergence metric=    328.8889  First stage cost avg= 162522.4603  Max-Min=   59.83
     59Fixing variable=ProduceSizeFirstStage[9] at tree node=RootNode to value=1; converged for 20 iterations
     60Convergence metric=    429.3333  First stage cost avg= 162021.8843  Max-Min=  136.68
    6161Initiating PH iteration=22
    62 Convergence metric=    345.1111  First stage cost avg= 162526.5093  Max-Min=   25.78
     62Convergence metric=    534.0000  First stage cost avg= 162101.8949  Max-Min=  184.75
    6363Initiating PH iteration=23
    64 Convergence metric=    248.4444  First stage cost avg= 162526.0035  Max-Min=    9.46
     64Convergence metric=    123.7778  First stage cost avg= 162177.4795  Max-Min=   72.20
    6565Initiating PH iteration=24
    66 Convergence metric=    106.2222  First stage cost avg= 162519.5000  Max-Min=   12.57
     66Convergence metric=    288.6667  First stage cost avg= 162201.2680  Max-Min=  113.73
    6767Initiating PH iteration=25
    68 Convergence metric=     38.4444  First stage cost avg= 162512.6360  Max-Min=   18.85
     68Convergence metric=    402.6667  First stage cost avg= 162253.1648  Max-Min=  111.71
    6969Initiating PH iteration=26
    70 Convergence metric=     96.8889  First stage cost avg= 162511.9904  Max-Min=   20.79
     70Convergence metric=    407.1111  First stage cost avg= 162279.9275  Max-Min=  111.71
    7171Initiating PH iteration=27
    72 Convergence metric=    114.8889  First stage cost avg= 162510.8731  Max-Min=   17.48
     72Convergence metric=    536.6667  First stage cost avg= 162351.9925  Max-Min=  117.80
    7373Initiating PH iteration=28
    74 Convergence metric=    125.1111  First stage cost avg= 162512.2099  Max-Min=   17.48
     74Convergence metric=    464.8889  First stage cost avg= 162390.8531  Max-Min=  102.08
    7575Initiating PH iteration=29
    7676Fixing variable=NumProducedFirstStage[1] at tree node=RootNode to value=0; converged for 30 iterations
     
    7979Fixing variable=NumUnitsCutFirstStage[7,3] at tree node=RootNode to value=0; converged for 30 iterations
    8080Fixing variable=NumUnitsCutFirstStage[9,1] at tree node=RootNode to value=0; converged for 30 iterations
     81Fixing variable=NumUnitsCutFirstStage[6,6] at tree node=RootNode to value=25000; converged for 30 iterations
     82Fixing variable=NumUnitsCutFirstStage[10,6] at tree node=RootNode to value=0; converged for 30 iterations
     83Fixing variable=NumUnitsCutFirstStage[3,2] at tree node=RootNode to value=7500; converged for 30 iterations
    8184Fixing variable=NumUnitsCutFirstStage[2,1] at tree node=RootNode to value=0; converged for 30 iterations
    8285Fixing variable=NumUnitsCutFirstStage[6,2] at tree node=RootNode to value=0; converged for 30 iterations
     
    8588Fixing variable=NumUnitsCutFirstStage[7,2] at tree node=RootNode to value=0; converged for 30 iterations
    8689Fixing variable=NumUnitsCutFirstStage[8,2] at tree node=RootNode to value=0; converged for 30 iterations
     90Fixing variable=NumUnitsCutFirstStage[3,3] at tree node=RootNode to value=12500; converged for 30 iterations
    8791Fixing variable=NumUnitsCutFirstStage[8,1] at tree node=RootNode to value=0; converged for 30 iterations
    88 Fixing variable=NumUnitsCutFirstStage[8,5] at tree node=RootNode to value=0; converged for 30 iterations
    8992Fixing variable=NumUnitsCutFirstStage[7,6] at tree node=RootNode to value=0; converged for 30 iterations
    9093Fixing variable=NumUnitsCutFirstStage[4,4] at tree node=RootNode to value=0; converged for 30 iterations
     
    9497Fixing variable=NumUnitsCutFirstStage[4,1] at tree node=RootNode to value=0; converged for 30 iterations
    9598Fixing variable=NumUnitsCutFirstStage[1,1] at tree node=RootNode to value=0; converged for 30 iterations
     99Fixing variable=NumUnitsCutFirstStage[9,7] at tree node=RootNode to value=0; converged for 30 iterations
    96100Fixing variable=NumUnitsCutFirstStage[7,1] at tree node=RootNode to value=0; converged for 30 iterations
    97101Fixing variable=NumUnitsCutFirstStage[9,3] at tree node=RootNode to value=0; converged for 30 iterations
    98102Fixing variable=NumUnitsCutFirstStage[10,1] at tree node=RootNode to value=0; converged for 30 iterations
     103Fixing variable=NumUnitsCutFirstStage[9,5] at tree node=RootNode to value=0; converged for 30 iterations
    99104Fixing variable=NumUnitsCutFirstStage[4,2] at tree node=RootNode to value=0; converged for 30 iterations
    100105Fixing variable=NumUnitsCutFirstStage[9,6] at tree node=RootNode to value=0; converged for 30 iterations
    101106Fixing variable=NumUnitsCutFirstStage[5,3] at tree node=RootNode to value=0; converged for 30 iterations
    102 Fixing variable=NumUnitsCutFirstStage[10,5] at tree node=RootNode to value=0; converged for 30 iterations
    103107Fixing variable=NumUnitsCutFirstStage[10,10] at tree node=RootNode to value=5000; converged for 30 iterations
    104108Fixing variable=NumUnitsCutFirstStage[9,2] at tree node=RootNode to value=0; converged for 30 iterations
    105109Fixing variable=NumUnitsCutFirstStage[6,1] at tree node=RootNode to value=0; converged for 30 iterations
     110Fixing variable=NumUnitsCutFirstStage[3,1] at tree node=RootNode to value=2500; converged for 30 iterations
    106111Fixing variable=NumUnitsCutFirstStage[4,3] at tree node=RootNode to value=0; converged for 30 iterations
    107112Fixing variable=NumUnitsCutFirstStage[8,3] at tree node=RootNode to value=0; converged for 30 iterations
    108113Fixing variable=NumUnitsCutFirstStage[5,2] at tree node=RootNode to value=0; converged for 30 iterations
    109114Fixing variable=NumUnitsCutFirstStage[10,2] at tree node=RootNode to value=0; converged for 30 iterations
    110 Convergence metric=     73.1111  First stage cost avg= 162517.4552  Max-Min=   10.03
     115Convergence metric=    488.4444  First stage cost avg= 162392.2824  Max-Min=  105.15
    111116Initiating PH iteration=30
    112 Convergence metric=     43.3333  First stage cost avg= 162520.1480  Max-Min=    2.45
     117Convergence metric=    589.1111  First stage cost avg= 162442.1243  Max-Min=  102.51
    113118Initiating PH iteration=31
    114 Convergence metric=     53.1111  First stage cost avg= 162520.3797  Max-Min=    2.45
     119Fixing variable=NumUnitsCutFirstStage[7,5] at tree node=RootNode to value=0; converged for 30 iterations
     120Convergence metric=    429.5556  First stage cost avg= 162473.6141  Max-Min=   71.91
    115121Initiating PH iteration=32
    116 Fixing variable=NumUnitsCutFirstStage[7,5] at tree node=RootNode to value=0; converged for 30 iterations
    117 Convergence metric=     44.8889  First stage cost avg= 162519.3685  Max-Min=    4.29
     122Fixing variable=NumUnitsCutFirstStage[10,5] at tree node=RootNode to value=0; converged for 30 iterations
     123Convergence metric=    481.7778  First stage cost avg= 162477.2768  Max-Min=   74.86
    118124Initiating PH iteration=33
    119 Fixing variable=NumUnitsCutFirstStage[9,5] at tree node=RootNode to value=0; converged for 30 iterations
     125Fixing variable=NumUnitsCutFirstStage[9,4] at tree node=RootNode to value=0; converged for 30 iterations
     126Convergence metric=    353.7778  First stage cost avg= 162524.1715  Max-Min=  108.19
     127Initiating PH iteration=34
     128Fixing variable=NumUnitsCutFirstStage[8,7] at tree node=RootNode to value=0; converged for 30 iterations
    120129Fixing variable=NumUnitsCutFirstStage[8,4] at tree node=RootNode to value=0; converged for 30 iterations
    121 Convergence metric=     37.5556  First stage cost avg= 162519.4059  Max-Min=    4.18
    122 Initiating PH iteration=34
    123 Fixing variable=NumUnitsCutFirstStage[3,3] at tree node=RootNode to value=12500; converged for 30 iterations
    124 Convergence metric=     38.8889  First stage cost avg= 162518.8920  Max-Min=    5.72
     130Convergence metric=    200.8889  First stage cost avg= 162547.7352  Max-Min=   71.21
    125131Initiating PH iteration=35
    126 Fixing variable=NumUnitsCutFirstStage[6,6] at tree node=RootNode to value=25000; converged for 30 iterations
    127 Fixing variable=NumUnitsCutFirstStage[10,6] at tree node=RootNode to value=0; converged for 30 iterations
    128 Fixing variable=NumUnitsCutFirstStage[9,7] at tree node=RootNode to value=0; converged for 30 iterations
    129 Fixing variable=NumUnitsCutFirstStage[3,1] at tree node=RootNode to value=2500; converged for 30 iterations
    130 Fixing variable=NumUnitsCutFirstStage[7,4] at tree node=RootNode to value=0; converged for 30 iterations
    131 Convergence metric=    164.2222  First stage cost avg= 162521.0685  Max-Min=    9.80
    132 Initiating PH iteration=36
    133 Convergence metric=    129.5556  First stage cost avg= 162520.5549  Max-Min=   11.34
    134 Initiating PH iteration=37
    135 Convergence metric=    140.6667  First stage cost avg= 162520.5189  Max-Min=   11.45
    136 Initiating PH iteration=38
    137 Convergence metric=    127.7778  First stage cost avg= 162520.3024  Max-Min=   12.10
    138 Initiating PH iteration=39
    139 Fixing variable=NumUnitsCutFirstStage[9,8] at tree node=RootNode to value=0; converged for 30 iterations
    140 Convergence metric=    115.5556  First stage cost avg= 162520.8720  Max-Min=   10.39
    141 Initiating PH iteration=40
    142 Fixing variable=NumUnitsCutFirstStage[10,8] at tree node=RootNode to value=0; converged for 30 iterations
    143 Fixing variable=NumUnitsCutFirstStage[8,8] at tree node=RootNode to value=12500; converged for 30 iterations
    144 Convergence metric=    119.3333  First stage cost avg= 162521.1565  Max-Min=    9.53
    145 Initiating PH iteration=41
    146 Fixing variable=NumUnitsCutFirstStage[8,7] at tree node=RootNode to value=0; converged for 30 iterations
    147 Convergence metric=   1000.0000  First stage cost avg= 162503.2563  Max-Min=   20.58
    148 Initiating PH iteration=42
    149 Fixing variable=NumUnitsCutFirstStage[10,4] at tree node=RootNode to value=0; converged for 30 iterations
    150 Fixing variable=NumUnitsCutFirstStage[10,7] at tree node=RootNode to value=0; converged for 30 iterations
    151 Convergence metric=    491.1111  First stage cost avg= 162519.9008  Max-Min=   92.31
    152 Initiating PH iteration=43
    153 Fixing variable=NumUnitsCutFirstStage[3,2] at tree node=RootNode to value=7500; converged for 30 iterations
    154 Fixing variable=NumUnitsCutFirstStage[9,4] at tree node=RootNode to value=0; converged for 30 iterations
     132Fixing variable=NumUnitsCutFirstStage[8,5] at tree node=RootNode to value=0; converged for 30 iterations
    155133Fixing variable=NumUnitsCutFirstStage[5,5] at tree node=RootNode to value=35000; converged for 30 iterations
    156134Fixing variable=NumUnitsCutFirstStage[6,5] at tree node=RootNode to value=0; converged for 30 iterations
    157 Convergence metric=    104.4444  First stage cost avg= 162555.0941  Max-Min=  137.06
     135Fixing variable=NumUnitsCutFirstStage[7,4] at tree node=RootNode to value=0; converged for 30 iterations
     136Convergence metric=    208.4444  First stage cost avg= 162547.7784  Max-Min=   71.30
     137Initiating PH iteration=36
     138Convergence metric=    197.7778  First stage cost avg= 162590.0229  Max-Min=  102.45
     139Initiating PH iteration=37
     140Convergence metric=    153.1111  First stage cost avg= 162618.0912  Max-Min=   79.00
     141Initiating PH iteration=38
     142Convergence metric=     78.2222  First stage cost avg= 162660.3163  Max-Min=   36.50
     143Initiating PH iteration=39
     144Fixing variable=NumUnitsCutFirstStage[10,4] at tree node=RootNode to value=0; converged for 30 iterations
     145Convergence metric=     97.5556  First stage cost avg= 162678.3757  Max-Min=   50.64
     146Initiating PH iteration=40
     147Fixing variable=NumUnitsCutFirstStage[9,8] at tree node=RootNode to value=0; converged for 30 iterations
     148Convergence metric=    125.5556  First stage cost avg= 162687.5904  Max-Min=   64.50
     149Initiating PH iteration=41
     150Convergence metric=    103.7778  First stage cost avg= 162681.4379  Max-Min=   46.78
     151Initiating PH iteration=42
     152Convergence metric=    297.1111  First stage cost avg= 162713.8197  Max-Min=  118.03
     153Initiating PH iteration=43
     154Convergence metric=    110.8889  First stage cost avg= 162765.8763  Max-Min=   44.97
    158155Initiating PH iteration=44
    159 Convergence metric=    234.8889  First stage cost avg= 162565.2381  Max-Min=  167.49
     156Convergence metric=    124.2222  First stage cost avg= 162784.8645  Max-Min=   46.13
    160157Initiating PH iteration=45
    161 Convergence metric=    215.1111  First stage cost avg= 162559.5171  Max-Min=  150.33
     158Convergence metric=    121.3333  First stage cost avg= 162828.4368  Max-Min=   97.23
    162159Initiating PH iteration=46
    163 Convergence metric=    191.1111  First stage cost avg= 162551.9536  Max-Min=  127.64
     160Convergence metric=    115.3333  First stage cost avg= 162848.6045  Max-Min=   97.20
    164161Initiating PH iteration=47
    165 Convergence metric=    261.5556  First stage cost avg= 162590.4424  Max-Min=  165.04
     162Convergence metric=     90.6667  First stage cost avg= 162901.1149  Max-Min=   81.47
    166163Initiating PH iteration=48
    167 Convergence metric=    271.7778  First stage cost avg= 162727.4427  Max-Min=  291.46
     164Convergence metric=     29.7778  First stage cost avg= 162944.5685  Max-Min=   23.24
    168165Initiating PH iteration=49
    169 Convergence metric=    181.1111  First stage cost avg= 162810.1099  Max-Min=  215.64
     166Convergence metric=     31.1111  First stage cost avg= 162978.8581  Max-Min=   31.24
    170167Initiating PH iteration=50
    171 Convergence metric=    152.8889  First stage cost avg= 162832.5963  Max-Min=  206.17
     168Convergence metric=     57.3333  First stage cost avg= 162987.6752  Max-Min=   55.43
    172169Initiating PH iteration=51
    173 Convergence metric=    139.5556  First stage cost avg= 162832.6269  Max-Min=  172.80
     170Convergence metric=     48.8889  First stage cost avg= 163010.1264  Max-Min=   22.70
    174171Initiating PH iteration=52
    175 Convergence metric=    159.5556  First stage cost avg= 162810.9301  Max-Min=  115.70
     172Convergence metric=     32.2222  First stage cost avg= 163028.5835  Max-Min=   16.13
    176173Initiating PH iteration=53
    177 Convergence metric=     43.7778  First stage cost avg= 162764.6824  Max-Min=   47.11
     174Convergence metric=     31.1111  First stage cost avg= 163050.5835  Max-Min=   14.50
    178175Initiating PH iteration=54
    179 Convergence metric=     65.1111  First stage cost avg= 162750.8069  Max-Min=   76.44
     176Convergence metric=     46.0000  First stage cost avg= 163058.5744  Max-Min=   27.07
    180177Initiating PH iteration=55
    181 Convergence metric=     86.2222  First stage cost avg= 162762.6371  Max-Min=   69.00
     178Convergence metric=     39.3333  First stage cost avg= 163057.0197  Max-Min=   22.41
    182179Initiating PH iteration=56
    183 Convergence metric=     71.1111  First stage cost avg= 162773.8237  Max-Min=   63.40
     180Fixing variable=NumUnitsCutFirstStage[10,7] at tree node=RootNode to value=0; converged for 30 iterations
     181Convergence metric=     27.1111  First stage cost avg= 163052.8653  Max-Min=   14.50
    184182Initiating PH iteration=57
    185 Convergence metric=     47.1111  First stage cost avg= 162772.4597  Max-Min=   49.29
     183Convergence metric=     37.3333  First stage cost avg= 163055.8597  Max-Min=   23.48
    186184Initiating PH iteration=58
    187 Convergence metric=     22.0000  First stage cost avg= 162762.3544  Max-Min=   32.08
     185Convergence metric=    150.0000  First stage cost avg= 163091.9667  Max-Min=  107.75
    188186Initiating PH iteration=59
    189 Convergence metric=     28.8889  First stage cost avg= 162757.9320  Max-Min=   29.55
     187Convergence metric=    106.4444  First stage cost avg= 163104.6259  Max-Min=   76.96
    190188Initiating PH iteration=60
    191 Convergence metric=     26.4444  First stage cost avg= 162758.9744  Max-Min=   29.55
     189Convergence metric=     97.5556  First stage cost avg= 163100.9563  Max-Min=   72.93
    192190Initiating PH iteration=61
    193 Convergence metric=     20.6667  First stage cost avg= 162761.3224  Max-Min=   29.55
     191Convergence metric=    198.4444  First stage cost avg= 163141.8648  Max-Min=  150.27
    194192Initiating PH iteration=62
    195 Convergence metric=     21.3333  First stage cost avg= 162762.1051  Max-Min=   31.33
     193Convergence metric=     82.8889  First stage cost avg= 163196.3315  Max-Min=   67.15
    196194Initiating PH iteration=63
    197 Convergence metric=     62.2222  First stage cost avg= 162738.9811  Max-Min=   71.11
     195Convergence metric=     30.4444  First stage cost avg= 163240.3480  Max-Min=   13.45
    198196Initiating PH iteration=64
    199 Convergence metric=     52.4444  First stage cost avg= 162731.4315  Max-Min=   48.46
     197Cycle issue detected with variable=NumUnitsCutFirstStage[(10, 8)]
     198Current hash value=-51.0242933446 matched (within tolerance) hash value=-51.02429333 found at PH iteration=13; cycle length=51
     199Cycle length exceeds iteration slamming threshold=50; choosing a variable to slam
     200Slamming variable=NumProducedFirstStage[10] at tree node=RootNode to value=20478; value=node maximum
     201Fixing variable=NumProducedFirstStage[10] at tree node=RootNode to value=20478; converged for 0 iterations
     202Convergence metric=     66.6667  First stage cost avg= 163252.1880  Max-Min=   33.11
    200203Initiating PH iteration=65
    201 Convergence metric=     55.3333  First stage cost avg= 162730.1328  Max-Min=   44.56
     204Convergence metric=     64.0000  First stage cost avg= 163265.4277  Max-Min=   53.49
    202205Initiating PH iteration=66
    203 Convergence metric=     52.0000  First stage cost avg= 162731.6981  Max-Min=   49.26
     206Convergence metric=     42.6667  First stage cost avg= 163256.7723  Max-Min=   30.37
    204207Initiating PH iteration=67
    205 Convergence metric=     50.2222  First stage cost avg= 162733.2496  Max-Min=   53.91
     208Convergence metric=     30.2222  First stage cost avg= 163250.2683  Max-Min=   30.37
    206209Initiating PH iteration=68
    207 Convergence metric=     50.6667  First stage cost avg= 162733.5093  Max-Min=   54.69
     210Convergence metric=     30.2222  First stage cost avg= 163250.2683  Max-Min=   30.37
    208211Initiating PH iteration=69
    209 Cycle issue detected with variable=NumProducedFirstStage[7]
    210 Current hash value=1076.00751688 matched (within tolerance) hash value=1076.00751746 found at PH iteration=16; cycle length=53
     212Convergence metric=    127.3333  First stage cost avg= 163291.2136  Max-Min=  113.28
     213Initiating PH iteration=70
     214Convergence metric=     97.7778  First stage cost avg= 163322.1560  Max-Min=   91.69
     215Initiating PH iteration=71
     216Fixing variable=NumUnitsCutFirstStage[10,9] at tree node=RootNode to value=0; converged for 30 iterations
     217Convergence metric=    107.7778  First stage cost avg= 163327.7763  Max-Min=   91.69
     218Initiating PH iteration=72
     219Convergence metric=    144.4444  First stage cost avg= 163351.0677  Max-Min=  118.01
     220Initiating PH iteration=73
     221Convergence metric=      3.5556  First stage cost avg= 163374.5947  Max-Min=    3.95
     222Initiating PH iteration=74
     223Convergence metric=     31.3333  First stage cost avg= 163391.9880  Max-Min=   22.46
     224Initiating PH iteration=75
     225Convergence metric=     40.2222  First stage cost avg= 163398.9469  Max-Min=   33.69
     226Initiating PH iteration=76
     227Cycle issue detected with variable=NumProducedFirstStage[8]
     228Current hash value=551.657215815 matched (within tolerance) hash value=551.657215815 found at PH iteration=23; cycle length=53
    211229Cycle length exceeds iteration slamming threshold=50; choosing a variable to slam
    212 Slamming variable=NumProducedFirstStage[10] at tree node=RootNode to value=18042; value=node maximum
    213 Fixing variable=NumProducedFirstStage[10] at tree node=RootNode to value=18042; converged for 0 iterations
    214 Convergence metric=    108.8889  First stage cost avg= 162787.4736  Max-Min=  123.65
    215 Initiating PH iteration=70
    216 Convergence metric=     75.7778  First stage cost avg= 162867.3651  Max-Min=  145.80
    217 Initiating PH iteration=71
    218 Convergence metric=     90.8889  First stage cost avg= 162907.4928  Max-Min=  113.30
    219 Initiating PH iteration=72
    220 Convergence metric=    105.5556  First stage cost avg= 162914.8285  Max-Min=   98.98
    221 Initiating PH iteration=73
    222 Convergence metric=     68.6667  First stage cost avg= 162938.0051  Max-Min=   29.45
    223 Initiating PH iteration=74
    224 Convergence metric=     52.6667  First stage cost avg= 162952.1979  Max-Min=   14.64
    225 Initiating PH iteration=75
    226 Cycle issue detected with variable=NumProducedFirstStage[7]
    227 Current hash value=1323.3048585 matched (within tolerance) hash value=1323.30485908 found at PH iteration=24; cycle length=51
     230Slamming variable=NumProducedFirstStage[9] at tree node=RootNode to value=18361; value=node maximum
     231Fixing variable=NumProducedFirstStage[9] at tree node=RootNode to value=18361; converged for 0 iterations
     232Convergence metric=     59.0000  First stage cost avg= 163423.8339  Max-Min=   49.01
     233Initiating PH iteration=77
     234Convergence metric=      7.3333  First stage cost avg= 163454.6200  Max-Min=    4.05
     235Initiating PH iteration=78
     236Convergence metric=     24.6667  First stage cost avg= 163474.0021  Max-Min=   26.62
     237Initiating PH iteration=79
     238Convergence metric=     24.6667  First stage cost avg= 163501.2072  Max-Min=   24.26
     239Initiating PH iteration=80
     240Convergence metric=     10.4444  First stage cost avg= 163524.1155  Max-Min=   11.30
     241Initiating PH iteration=81
     242Convergence metric=     10.0000  First stage cost avg= 163551.2997  Max-Min=   12.05
     243Initiating PH iteration=82
     244Convergence metric=      2.2222  First stage cost avg= 163579.0251  Max-Min=    1.59
     245Initiating PH iteration=83
     246Convergence metric=      2.4444  First stage cost avg= 163606.2093  Max-Min=    1.57
     247Initiating PH iteration=84
     248Cycle issue detected with variable=NumUnitsCutFirstStage[(7, 7)]
     249Current hash value=-0.610309332731 matched (within tolerance) hash value=-0.610309332721 found at PH iteration=23; cycle length=61
    228250Cycle length exceeds iteration slamming threshold=50; choosing a variable to slam
    229 Slamming variable=NumProducedFirstStage[9] at tree node=RootNode to value=22684; value=node maximum
    230 Fixing variable=NumProducedFirstStage[9] at tree node=RootNode to value=22684; converged for 0 iterations
    231 Convergence metric=     26.1111  First stage cost avg= 162957.2029  Max-Min=   18.34
    232 Initiating PH iteration=76
    233 Convergence metric=     15.5556  First stage cost avg= 162953.1304  Max-Min=    6.64
    234 Initiating PH iteration=77
    235 Convergence metric=     17.5556  First stage cost avg= 162951.5131  Max-Min=    8.70
    236 Initiating PH iteration=78
    237 Fixing variable=NumUnitsCutFirstStage[10,9] at tree node=RootNode to value=0; converged for 30 iterations
    238 Convergence metric=     10.0000  First stage cost avg= 162951.9875  Max-Min=    7.27
    239 Initiating PH iteration=79
    240 Convergence metric=     33.5556  First stage cost avg= 162943.7277  Max-Min=   23.76
    241 Initiating PH iteration=80
    242 Convergence metric=     26.2222  First stage cost avg= 162938.4187  Max-Min=   21.27
    243 Initiating PH iteration=81
    244 Cycle issue detected with variable=NumProducedFirstStage[3]
    245 Current hash value=2811.5187373 matched (within tolerance) hash value=2811.51873984 found at PH iteration=29; cycle length=52
     251Slamming variable=NumProducedFirstStage[8] at tree node=RootNode to value=8801; value=node maximum
     252Fixing variable=NumProducedFirstStage[8] at tree node=RootNode to value=8801; converged for 0 iterations
     253Convergence metric=     19.7778  First stage cost avg= 163613.0520  Max-Min=   11.51
     254Initiating PH iteration=85
     255Convergence metric=     13.1111  First stage cost avg= 163616.9936  Max-Min=    0.41
     256Initiating PH iteration=86
     257Convergence metric=     13.1111  First stage cost avg= 163616.9936  Max-Min=    0.41
     258Initiating PH iteration=87
     259Convergence metric=     11.1111  First stage cost avg= 163616.9659  Max-Min=    0.04
     260Initiating PH iteration=88
     261Convergence metric=     10.8889  First stage cost avg= 163616.9451  Max-Min=    0.05
     262Initiating PH iteration=89
     263Convergence metric=     10.8889  First stage cost avg= 163616.9451  Max-Min=    0.05
     264Initiating PH iteration=90
     265Convergence metric=     10.8889  First stage cost avg= 163616.8757  Max-Min=    0.22
     266Initiating PH iteration=91
     267Convergence metric=      6.8889  First stage cost avg= 163616.8272  Max-Min=    0.21
     268Initiating PH iteration=92
     269Cycle issue detected with variable=NumProducedFirstStage[6]
     270Current hash value=602.827470658 matched (within tolerance) hash value=602.827467185 found at PH iteration=39; cycle length=53
    246271Cycle length exceeds iteration slamming threshold=50; choosing a variable to slam
    247 Slamming variable=NumProducedFirstStage[8] at tree node=RootNode to value=19439; value=node maximum
    248 Fixing variable=NumProducedFirstStage[8] at tree node=RootNode to value=19439; converged for 0 iterations
    249 Convergence metric=     20.1111  First stage cost avg= 162940.4411  Max-Min=   18.23
    250 Initiating PH iteration=82
    251 Convergence metric=      7.7778  First stage cost avg= 162946.5675  Max-Min=    9.58
    252 Initiating PH iteration=83
    253 Convergence metric=      7.5556  First stage cost avg= 162954.2384  Max-Min=    7.09
    254 Initiating PH iteration=84
    255 Convergence metric=     10.6667  First stage cost avg= 162957.1475  Max-Min=    9.48
    256 Initiating PH iteration=85
    257 Convergence metric=     12.4444  First stage cost avg= 162958.2280  Max-Min=   11.89
    258 Initiating PH iteration=86
    259 Convergence metric=      9.5556  First stage cost avg= 162956.9328  Max-Min=    8.75
    260 Initiating PH iteration=87
    261 Convergence metric=      4.4444  First stage cost avg= 162954.2939  Max-Min=    4.00
    262 Initiating PH iteration=88
    263 Cycle issue detected with variable=NumProducedFirstStage[7]
    264 Current hash value=1292.39269309 matched (within tolerance) hash value=1292.39269137 found at PH iteration=23; cycle length=65
    265 Cycle length exceeds iteration slamming threshold=50; choosing a variable to slam
    266 Slamming variable=NumProducedFirstStage[7] at tree node=RootNode to value=17622; value=node maximum
    267 Fixing variable=NumProducedFirstStage[7] at tree node=RootNode to value=17622; converged for 0 iterations
    268 Convergence metric=      2.1111  First stage cost avg= 162951.3848  Max-Min=    0.77
    269 Initiating PH iteration=89
    270 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
    271 Initiating PH iteration=90
    272 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
    273 Initiating PH iteration=91
    274 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
    275 Initiating PH iteration=92
    276 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
     272Slamming variable=NumProducedFirstStage[7] at tree node=RootNode to value=29904; value=node maximum
     273Fixing variable=NumProducedFirstStage[7] at tree node=RootNode to value=29904; converged for 0 iterations
     274Convergence metric=     10.0000  First stage cost avg= 163616.8029  Max-Min=    0.26
    277275Initiating PH iteration=93
    278 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
     276Convergence metric=      6.8889  First stage cost avg= 163616.8480  Max-Min=    0.19
    279277Initiating PH iteration=94
    280 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
     278Convergence metric=      6.6667  First stage cost avg= 163616.8549  Max-Min=    0.17
    281279Initiating PH iteration=95
    282 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
     280Convergence metric=      6.2222  First stage cost avg= 163616.8619  Max-Min=    0.15
    283281Initiating PH iteration=96
    284 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
     282Convergence metric=      6.2222  First stage cost avg= 163616.8653  Max-Min=    0.14
    285283Initiating PH iteration=97
    286 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
     284Convergence metric=      6.2222  First stage cost avg= 163616.8619  Max-Min=    0.15
    287285Initiating PH iteration=98
    288 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
     286Fixing variable=NumUnitsCutFirstStage[9,9] at tree node=RootNode to value=12500; converged for 30 iterations
     287Convergence metric=      6.2222  First stage cost avg= 163616.8584  Max-Min=    0.16
    289288Initiating PH iteration=99
    290 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
     289Convergence metric=      6.2222  First stage cost avg= 163616.8584  Max-Min=    0.16
    291290Initiating PH iteration=100
    292 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
     291Convergence metric=      6.2222  First stage cost avg= 163616.8584  Max-Min=    0.16
    293292Initiating PH iteration=101
    294293Slamming criteria are satisifed - accelerating convergence
    295 Slamming variable=NumProducedFirstStage[6] at tree node=RootNode to value=38405; value=node maximum
    296 Fixing variable=NumProducedFirstStage[6] at tree node=RootNode to value=38405; converged for 14 iterations
    297 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
     294Slamming variable=NumProducedFirstStage[6] at tree node=RootNode to value=39094; value=node maximum
     295Fixing variable=NumProducedFirstStage[6] at tree node=RootNode to value=39094; converged for 0 iterations
     296Convergence metric=      7.3333  First stage cost avg= 163616.8584  Max-Min=    0.16
    298297Initiating PH iteration=102
    299 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
     298Convergence metric=     18.6667  First stage cost avg= 163616.6296  Max-Min=    0.50
    300299Initiating PH iteration=103
    301 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
     300Convergence metric=     18.6667  First stage cost avg= 163616.6296  Max-Min=    0.50
    302301Initiating PH iteration=104
    303 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
     302Convergence metric=     18.0000  First stage cost avg= 163615.8400  Max-Min=    2.24
    304303Initiating PH iteration=105
    305 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
     304Convergence metric=     16.0000  First stage cost avg= 163613.4712  Max-Min=    9.35
    306305Initiating PH iteration=106
    307 Convergence metric=      1.7778  First stage cost avg= 162951.6549  Max-Min=    1.56
     306Convergence metric=     18.0000  First stage cost avg= 163612.4117  Max-Min=   13.69
    308307Initiating PH iteration=107
    309308Slamming criteria are satisifed - accelerating convergence
    310 Slamming variable=NumProducedFirstStage[5] at tree node=RootNode to value=44598; value=node maximum
    311 Fixing variable=NumProducedFirstStage[5] at tree node=RootNode to value=44598; converged for 0 iterations
    312 Convergence metric=      2.0000  First stage cost avg= 162951.6549  Max-Min=    1.56
     309Slamming variable=NumProducedFirstStage[5] at tree node=RootNode to value=45123; value=node maximum
     310Fixing variable=NumProducedFirstStage[5] at tree node=RootNode to value=45123; converged for 0 iterations
     311Convergence metric=     15.5556  First stage cost avg= 163616.8723  Max-Min=    0.35
    313312Initiating PH iteration=108
    314 Fixing variable=NumUnitsCutFirstStage[7,7] at tree node=RootNode to value=15000; converged for 30 iterations
    315 Fixing variable=NumUnitsCutFirstStage[9,9] at tree node=RootNode to value=12500; converged for 30 iterations
    316 Convergence metric=      1.3333  First stage cost avg= 162952.1813  Max-Min=    0.77
    317 Initiating PH iteration=109
    318 Convergence metric=      7.1111  First stage cost avg= 162955.7691  Max-Min=    9.99
    319 Initiating PH iteration=110
    320 Convergence metric=      6.0000  First stage cost avg= 162954.4877  Max-Min=    7.69
    321 Initiating PH iteration=111
    322 Convergence metric=      2.4444  First stage cost avg= 162952.4376  Max-Min=    1.54
    323 Initiating PH iteration=112
    324 Convergence metric=      2.4444  First stage cost avg= 162952.4376  Max-Min=    1.54
    325 Initiating PH iteration=113
    326 Slamming criteria are satisifed - accelerating convergence
    327 Slamming variable=NumProducedFirstStage[3] at tree node=RootNode to value=38252; value=node maximum
    328 Fixing variable=NumProducedFirstStage[3] at tree node=RootNode to value=38252; converged for 0 iterations
    329 Convergence metric=      2.7778  First stage cost avg= 162952.4376  Max-Min=    1.54
    330 Initiating PH iteration=114
    331 Convergence metric=      0.0000  First stage cost avg= 162953.2064  Max-Min=    0.00
     313Convergence metric=      0.0000  First stage cost avg= 163617.0664  Max-Min=    0.00
    332314PH converged - convergence metric is below threshold=0.01 or all discrete variables are fixed
    333315PH complete
    334316Convergence history:
    335317Iteration    Metric Value
    336      0        112834.6667
    337      1         88670.8889
    338      2         29006.2222
    339      3          9660.8889
    340      4          5441.3333
    341      5          2181.5556
    342      6          1935.3333
    343      7          2200.2222
    344      8          1411.3333
    345      9           727.7778
    346     10           878.2222
    347     11           826.2222
    348     12           518.6667
    349     13           135.7778
    350     14           118.4444
    351     15           192.0000
    352     16           268.6667
    353     17           263.5556
    354     18           703.5556
    355     19           260.6667
    356     20           141.5556
    357     21           328.8889
    358     22           345.1111
    359     23           248.4444
    360     24           106.2222
    361     25            38.4444
    362     26            96.8889
    363     27           114.8889
    364     28           125.1111
    365     29            73.1111
    366     30            43.3333
    367     31            53.1111
    368     32            44.8889
    369     33            37.5556
    370     34            38.8889
    371     35           164.2222
    372     36           129.5556
    373     37           140.6667
    374     38           127.7778
    375     39           115.5556
    376     40           119.3333
    377     41          1000.0000
    378     42           491.1111
    379     43           104.4444
    380     44           234.8889
    381     45           215.1111
    382     46           191.1111
    383     47           261.5556
    384     48           271.7778
    385     49           181.1111
    386     50           152.8889
    387     51           139.5556
    388     52           159.5556
    389     53            43.7778
    390     54            65.1111
    391     55            86.2222
    392     56            71.1111
    393     57            47.1111
    394     58            22.0000
    395     59            28.8889
    396     60            26.4444
    397     61            20.6667
    398     62            21.3333
    399     63            62.2222
    400     64            52.4444
    401     65            55.3333
    402     66            52.0000
    403     67            50.2222
    404     68            50.6667
    405     69           108.8889
    406     70            75.7778
    407     71            90.8889
    408     72           105.5556
    409     73            68.6667
    410     74            52.6667
    411     75            26.1111
    412     76            15.5556
    413     77            17.5556
    414     78            10.0000
    415     79            33.5556
    416     80            26.2222
    417     81            20.1111
    418     82             7.7778
    419     83             7.5556
    420     84            10.6667
    421     85            12.4444
    422     86             9.5556
    423     87             4.4444
    424     88             2.1111
    425     89             1.7778
    426     90             1.7778
    427     91             1.7778
    428     92             1.7778
    429     93             1.7778
    430     94             1.7778
    431     95             1.7778
    432     96             1.7778
    433     97             1.7778
    434     98             1.7778
    435     99             1.7778
    436    100             1.7778
    437    101             1.7778
    438    102             1.7778
    439    103             1.7778
    440    104             1.7778
    441    105             1.7778
    442    106             1.7778
    443    107             2.0000
    444    108             1.3333
    445    109             7.1111
    446    110             6.0000
    447    111             2.4444
    448    112             2.4444
    449    113             2.7778
    450    114             0.0000
    451 Final number of discrete variables fixed=73 (total=75)
     318     0         83334.2222
     319     1         65448.8889
     320     2         24908.2222
     321     3          4082.8889
     322     4          1242.4444
     323     5           530.8889
     324     6           506.8889
     325     7           449.7778
     326     8           231.5556
     327     9            78.0000
     328    10            88.0000
     329    11           405.3333
     330    12           542.0000
     331    13           502.6667
     332    14           643.7778
     333    15           560.8889
     334    16           583.1111
     335    17           838.2222
     336    18           652.4444
     337    19           190.0000
     338    20           338.2222
     339    21           429.3333
     340    22           534.0000
     341    23           123.7778
     342    24           288.6667
     343    25           402.6667
     344    26           407.1111
     345    27           536.6667
     346    28           464.8889
     347    29           488.4444
     348    30           589.1111
     349    31           429.5556
     350    32           481.7778
     351    33           353.7778
     352    34           200.8889
     353    35           208.4444
     354    36           197.7778
     355    37           153.1111
     356    38            78.2222
     357    39            97.5556
     358    40           125.5556
     359    41           103.7778
     360    42           297.1111
     361    43           110.8889
     362    44           124.2222
     363    45           121.3333
     364    46           115.3333
     365    47            90.6667
     366    48            29.7778
     367    49            31.1111
     368    50            57.3333
     369    51            48.8889
     370    52            32.2222
     371    53            31.1111
     372    54            46.0000
     373    55            39.3333
     374    56            27.1111
     375    57            37.3333
     376    58           150.0000
     377    59           106.4444
     378    60            97.5556
     379    61           198.4444
     380    62            82.8889
     381    63            30.4444
     382    64            66.6667
     383    65            64.0000
     384    66            42.6667
     385    67            30.2222
     386    68            30.2222
     387    69           127.3333
     388    70            97.7778
     389    71           107.7778
     390    72           144.4444
     391    73             3.5556
     392    74            31.3333
     393    75            40.2222
     394    76            59.0000
     395    77             7.3333
     396    78            24.6667
     397    79            24.6667
     398    80            10.4444
     399    81            10.0000
     400    82             2.2222
     401    83             2.4444
     402    84            19.7778
     403    85            13.1111
     404    86            13.1111
     405    87            11.1111
     406    88            10.8889
     407    89            10.8889
     408    90            10.8889
     409    91             6.8889
     410    92            10.0000
     411    93             6.8889
     412    94             6.6667
     413    95             6.2222
     414    96             6.2222
     415    97             6.2222
     416    98             6.2222
     417    99             6.2222
     418   100             6.2222
     419   101             7.3333
     420   102            18.6667
     421   103            18.6667
     422   104            18.0000
     423   105            16.0000
     424   106            18.0000
     425   107            15.5556
     426   108             0.0000
     427Final number of discrete variables fixed=69 (total=75)
    452428Final number of continuous variables fixed=0 (total=0)
    453429Final variable values:
     
    478454                        Index: [3]
    479455                                Tree Node=RootNode               (Scenarios:  Scenario1   Scenario2   Scenario3   )
    480                                 Values:    38252.0000   38252.0000   38252.0000     Max-Min=      2.0000     Avg=  38251.0000
     456                                Values:    38239.0000   38239.0000   38239.0000     Max-Min=      0.0000     Avg=  38239.0000
    481457                        Index: [5]
    482458                                Tree Node=RootNode               (Scenarios:  Scenario1   Scenario2   Scenario3   )
    483                                 Values:    44598.0000   44598.0000   44598.0000     Max-Min=      1.0000     Avg=  44597.3333
     459                                Values:    45123.0000   45123.0000   45123.0000     Max-Min=     17.0000     Avg=  45113.6667
    484460                        Index: [6]
    485461                                Tree Node=RootNode               (Scenarios:  Scenario1   Scenario2   Scenario3   )
    486                                 Values:    38405.0000   38405.0000   38405.0000     Max-Min=      0.0000     Avg=  38405.0000
     462                                Values:    39094.0000   39094.0000   39094.0000     Max-Min=      5.0000     Avg=  39090.6667
    487463                        Index: [7]
    488464                                Tree Node=RootNode               (Scenarios:  Scenario1   Scenario2   Scenario3   )
    489                                 Values:    17622.0000   17622.0000   17622.0000     Max-Min=      1.0000     Avg=  17621.6667
     465                                Values:    29904.0000   29904.0000   29904.0000     Max-Min=      5.0000     Avg=  29901.3333
    490466                        Index: [8]
    491467                                Tree Node=RootNode               (Scenarios:  Scenario1   Scenario2   Scenario3   )
    492                                 Values:    19439.0000   19439.0000   19439.0000     Max-Min=      3.0000     Avg=  19437.3333
     468                                Values:     8801.0000    8801.0000    8801.0000     Max-Min=      7.0000     Avg=   8798.3333
    493469                        Index: [9]
    494470                                Tree Node=RootNode               (Scenarios:  Scenario1   Scenario2   Scenario3   )
    495                                 Values:    22684.0000   22684.0000   22684.0000     Max-Min=      3.0000     Avg=  22682.3333
     471                                Values:    18361.0000   18361.0000   18361.0000     Max-Min=     12.0000     Avg=  18356.6667
    496472                        Index: [10]
    497473                                Tree Node=RootNode               (Scenarios:  Scenario1   Scenario2   Scenario3   )
    498                                 Values:    18042.0000   18042.0000   18042.0000     Max-Min=     19.0000     Avg=  18032.0000
     474                                Values:    20478.0000   20478.0000   20478.0000     Max-Min=     37.0000     Avg=  20462.6667
    499475                Variable=NumUnitsCutFirstStage
    500476                        Index: [6,6]
     
    504480                                Tree Node=RootNode               (Scenarios:  Scenario1   Scenario2   Scenario3   )
    505481                                Values:     7500.0000    7500.0000    7500.0000     Max-Min=      0.0000     Avg=   7500.0000
     482                        Index: [10,8]
     483                                Tree Node=RootNode               (Scenarios:  Scenario1   Scenario2   Scenario3   )
     484                                Values:     3699.0000    3699.0000    3699.0000     Max-Min=      0.0000     Avg=   3699.0000
    506485                        Index: [3,3]
    507486                                Tree Node=RootNode               (Scenarios:  Scenario1   Scenario2   Scenario3   )
    508487                                Values:    12500.0000   12500.0000   12500.0000     Max-Min=      0.0000     Avg=  12500.0000
    509                         Index: [6,4]
    510                                 Tree Node=RootNode               (Scenarios:  Scenario1   Scenario2   Scenario3   )
    511                                 Values:      402.0000     402.0000     402.0000     Max-Min=      0.0000     Avg=    402.0000
    512488                        Index: [5,4]
    513489                                Tree Node=RootNode               (Scenarios:  Scenario1   Scenario2   Scenario3   )
    514                                 Values:     9598.0000    9598.0000    9598.0000     Max-Min=      0.0000     Avg=   9598.0000
     490                                Values:    10000.0000   10000.0000   10000.0000     Max-Min=      0.0000     Avg=  10000.0000
    515491                        Index: [5,5]
    516492                                Tree Node=RootNode               (Scenarios:  Scenario1   Scenario2   Scenario3   )
     
    530506                        Index: [8,8]
    531507                                Tree Node=RootNode               (Scenarios:  Scenario1   Scenario2   Scenario3   )
    532                                 Values:    12500.0000   12500.0000   12500.0000     Max-Min=      0.0000     Avg=  12500.0000
     508                                Values:     8801.0000    8801.0000    8801.0000     Max-Min=      0.0000     Avg=   8801.0000
    533509                Cost Variable=FirstStageCost
    534510                        Tree Node=RootNode               (Scenarios:  Scenario1   Scenario2   Scenario3   )
    535                         Values:   162953.2064  162953.2064  162953.2064     Max-Min=      0.0000     Avg= 162953.2064
     511                        Values:   163617.0664  163617.0664  163617.0664     Max-Min=      0.0000     Avg= 163617.0664
    536512Final costs:
    537513Scenario Tree Costs
     
    547523        Conditional probability=1.0000
    548524        Children:
     525                Scenario1Node
    549526                Scenario2Node
    550                 Scenario1Node
    551527                Scenario3Node
    552528        Scenarios:
     
    554530                Scenario2
    555531                Scenario3
    556         Expected node cost=224795.7371
     532        Expected node cost=224880.6606
    557533
    558534        Name=Scenario1Node
     
    564540        Scenarios:
    565541                Scenario1
    566         Expected node cost=28546.2080
     542        Expected node cost=27865.3120
    567543
    568544        Name=Scenario2Node
     
    574550        Scenarios:
    575551                Scenario2
    576         Expected node cost=61704.9968
     552        Expected node cost=61156.0224
    577553
    578554        Name=Scenario3Node
     
    584560        Scenarios:
    585561                Scenario3
    586         Expected node cost=95276.3872
     562        Expected node cost=94769.4480
    587563
    588564----------------------------------------------------
     
    595571                RootNode
    596572                Scenario1Node
    597         Stage=          FirstStage     Cost=162953.2064
    598         Stage=         SecondStage     Cost=28546.2080
    599         Total scenario cost=191499.4144
     573        Stage=          FirstStage     Cost=163617.0664
     574        Stage=         SecondStage     Cost=27865.3120
     575        Total scenario cost=191482.3784
    600576
    601577        Name=Scenario2
     
    605581                RootNode
    606582                Scenario2Node
    607         Stage=          FirstStage     Cost=162953.2064
    608         Stage=         SecondStage     Cost=61704.9968
    609         Total scenario cost=224658.2032
     583        Stage=          FirstStage     Cost=163617.0664
     584        Stage=         SecondStage     Cost=61156.0224
     585        Total scenario cost=224773.0888
    610586
    611587        Name=Scenario3
     
    615591                RootNode
    616592                Scenario3Node
    617         Stage=          FirstStage     Cost=162953.2064
    618         Stage=         SecondStage     Cost=95276.3872
    619         Total scenario cost=258229.5936
     593        Stage=          FirstStage     Cost=163617.0664
     594        Stage=         SecondStage     Cost=94769.4480
     595        Total scenario cost=258386.5144
    620596
    621597----------------------------------------------------
    622598
    623 Total PH execution time=   40.54 seconds
    624 
     599Total PH execution time=   23.58 seconds
     600
  • coopr.pysp/stable/2.3/coopr/pysp/tests/unit/test_ph.py

    r2366 r2391  
    7979    def test_linearized_farmer(self):
    8080
     81        solver_string = ""
    8182        if cplex_available:
    82             solver='cplex'
    83         elif glpk_available:
    84             solver='glpk'
     83            solver_string="cplex"
     84        #elif glpk_available:
     85            #solver_string="glpk"
    8586        else:
    8687           return
     
    9091        model_dir = farmer_examples_dir + os.sep + "models"
    9192        instance_dir = farmer_examples_dir + os.sep + "scenariodata"       
    92         argstring = "runph --solver="+solver+" --solver-manager=serial --model-directory="+model_dir+" --instance-directory="+instance_dir+" --linearize-nonbinary-penalty-terms=10"
     93        argstring = "runph --solver="+solver_string+" --solver-manager=serial --model-directory="+model_dir+" --instance-directory="+instance_dir+" --linearize-nonbinary-penalty-terms=10"
    9394        args = string.split(argstring)
    9495        coopr.pysp.phinit.run(args=args)       
     
    9798        self.failUnlessFileEqualsBaseline(current_directory+"farmer_linearized.out",current_directory+"farmer_linearized.baseline", filter=filter_time)
    9899
     100    def test_linearized_farmer_nodedata(self):
     101
     102        solver_string = ""
     103        if cplex_available:
     104            solver_string="cplex"
     105        #elif glpk_available:
     106            #solver_string="glpk"
     107        else:
     108           return
     109
     110        pyutilib.misc.setup_redirect(current_directory+"farmer_linearized_nodedata.out")
     111        farmer_examples_dir = pysp_examples_dir + "farmer"
     112        model_dir = farmer_examples_dir + os.sep + "models"
     113        instance_dir = farmer_examples_dir + os.sep + "nodedata"       
     114        argstring = "runph --solver="+solver_string+" --solver-manager=serial --model-directory="+model_dir+" --instance-directory="+instance_dir+" --linearize-nonbinary-penalty-terms=10"
     115        args = string.split(argstring)
     116        coopr.pysp.phinit.run(args=args)       
     117        pyutilib.misc.reset_redirect()
     118        self.cleanup()               
     119        self.failUnlessFileEqualsBaseline(current_directory+"farmer_linearized_nodedata.out",current_directory+"farmer_linearized_nodedata.baseline", filter=filter_time)       
     120
    99121    def test_quadratic_sizes3(self):
     122
     123        # Ignore this for now
     124        return
    100125
    101126        if cplex_available is False:
     
    120145        self.cleanup()       
    121146
    122     #def run(self, result=None):
    123        #global cplex_available
    124        #if not cplex_available:
    125           #return
    126        #pyutilib.th.TestCase.run(self,result)
    127 
    128147if __name__ == "__main__":
    129148   unittest.main()
Note: See TracChangeset for help on using the changeset viewer.