source: coopr.pysp/trunk/coopr/pysp/__init__.py @ 3104

Last change on this file since 3104 was 2990, checked in by jwatson, 11 years ago

Added option to PySP scripts to allow for output of the scenario tree solutions in CSV file format. Option is --solution-writer=coopr.pysp.csvsolutionwriter.py. This also required some overdue refactoring of the PySP code, plus re-work of how the post-PH extensive form solution is displayed.

File size: 1.1 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
11import pyutilib.component.core
12
13pyutilib.component.core.PluginGlobals.push_env( "coopr.pysp" )
14
15from scenariotree import *
16from convergence import *
17from ph import *
18from phextension import *
19from phutils import *
20from ef import *
21from ef_writer_script import *
22from phinit import *
23from phsolvermanager import *
24from phobjective import *
25from solutionwriter import *
26
27pyutilib.component.core.PluginGlobals.pop_env()
28
29try:
30    import pkg_resources
31    #
32    # Load modules associated with Plugins that are defined in
33    # EGG files.
34    #
35    for entrypoint in pkg_resources.iter_entry_points('coopr.pysp'):
36        plugin_class = entrypoint.load()
37except:
38    pass
39
Note: See TracBrowser for help on using the repository browser.