source: coopr.pyomo/trunk/coopr/pyomo/__init__.py @ 2201

Last change on this file since 2201 was 2201, checked in by wehart, 10 years ago

Update to Coopr to account for changes in PyUtilib? package names.

File size: 1.0 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
13
14pyutilib.component.core.PluginGlobals.push_env( 'coopr.pyomo' )
15
16from base import *
17import base.pyomo as pyomo
18from expr import *
19import io
20from components import *
21import presolve
22import coopr.opt 
23import transform
24
25pyutilib.component.core.PluginGlobals.pop_env()
26
27
28try:
29    import pkg_resources
30    #
31    # Load modules associated with Plugins that are defined in
32    # EGG files.
33    #
34    for entrypoint in pkg_resources.iter_entry_points('coopr.pyomo'):
35        plugin_class = entrypoint.load()
36except:
37    pass
38
Note: See TracBrowser for help on using the repository browser.