Changeset 5479


Ignore:
Timestamp:
Dec 30, 2011 11:41:10 AM (8 years ago)
Author:
dlwoodr
Message:

phextension.py: added to missing call back routines
testphextension.py: put it back in the directory after a very long hiatus
testphextension.py is mentioned in the PySP documentation and is useful to have.
TBD: we should add a test of testphextension.py

Location:
coopr.pysp/trunk/coopr/pysp
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pysp/trunk/coopr/pysp/phextension.py

    r4162 r5479  
    1515class IPHExtension(Interface):
    1616
     17    def post_instance_creation(self,ph):
     18        """ Called after the instances have been created."""
     19        pass
     20
    1721    def post_ph_initialization(self, ph):
    1822        """ Called after PH initialization!"""
     
    2529    def post_iteration_0(self, ph):
    2630        """ Called after the iteration 0 solves, averages computation, and weight computation"""
     31        pass
     32
     33    def pre_iteration_k_solves(self, ph):
     34        """ called before each iteration k solve"""
    2735        pass
    2836
Note: See TracChangeset for help on using the changeset viewer.