source: trunk/coopr/pysp/phextension.py @ 1768

Last change on this file since 1768 was 1768, checked in by wehart, 11 years ago

Rework of Coopr to use the new PyUtilib? package decomposition.

NOTE: to use Coopr with this update, we need to work with a new version of coopr_install.

File size: 1.3 KB
Line 
1#  _________________________________________________________________________
2#
3#  Coopr: A COmmon Optimization Python Repository
4#  Copyright (c) 2008 Sandia Corporation.
5#  This software is distributed under the BSD License.
6#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
7#  the U.S. Government retains certain rights in this software.
8#  For more information, see the Coopr README.txt file.
9#  _________________________________________________________________________
10
11__all__ = ['IPHExtension']
12
13from pyutilib.plugin.core import *
14
15class IPHExtension(Interface):
16
17    def post_ph_initialization(self, ph):
18        """ Called after PH initialization!"""
19        pass
20
21    def post_iteration_0_solves(self, ph):
22        """ Called after the iteration 0 solves!"""
23        pass
24
25    def post_iteration_0(self, ph):
26        """ Called after the iteration 0 solves, averages computation, and weight computation"""
27        pass
28
29    def post_iteration_k_solves(self, ph):
30        """ Called after the iteration k solves!"""
31        pass
32
33    def post_iteration_k(self, ph):
34        """ Called after the iteration k is finished!"""
35        pass
36
37    def post_ph_execution(self, ph):
38        """ Called after PH has terminated!"""
39        pass       
40
41   
42
Note: See TracBrowser for help on using the repository browser.