source: coopr.opt/trunk/coopr/opt/__init__.py @ 2259

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

Adding a subpackage for optimization-specific testing tools.
Currently, this contains a customized PyUnit? testing class
that contains new testing functions.

File size: 1001 bytes
RevLine 
[1010]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.
[1217]8#  For more information, see the Coopr README.txt file.
[1010]9#  _________________________________________________________________________
10
[2201]11import pyutilib.component.core
[1174]12
[2201]13pyutilib.component.core.PluginGlobals.push_env( 'coopr.opt' )
[1761]14
15from base import *
[1900]16from results import *
[1761]17import solver
18import reader
[2258]19import testing
[1761]20from parallel import *
21
[2201]22pyutilib.component.core.PluginGlobals.pop_env()
[1761]23
24
[1653]25try:
26    import pkg_resources
27    #
28    # Load modules associated with Plugins that are defined in
29    # EGG files.
30    #
31    for entrypoint in pkg_resources.iter_entry_points('coopr.opt'):
32        plugin_class = entrypoint.load()
33except:
34    pass
[1174]35
Note: See TracBrowser for help on using the repository browser.