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