source: coopr.sucasa/trunk/scripts/sucasa @ 1806

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

Initial reorg of the Coopr trunk. The goal of this reorg is to
decompose Coopr into independent packages, each of which can
be maintained more independently.

  • Property svn:executable set to *
File size: 947 bytes
Line 
1#! /usr/bin/env python
2#
3# sucasa: A script that generates a custom IP solvers that integrates
4#           information from an algebraic model
5#
6#  _________________________________________________________________________
7#
8#  Coopr: A COmmon Optimization Python Repository
9#  Copyright (c) 2008 Sandia Corporation.
10#  This software is distributed under the BSD License.
11#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
12#  the U.S. Government retains certain rights in this software.
13#  For more information, see the FAST README.txt file.
14#  _________________________________________________________________________
15
16import sys
17if sys.version_info[0:2] < (2,4):
18   print ""
19   print "ERROR: Pyomo requires Python 2.4 or newer"
20   sys.exit(1)
21from os.path import abspath, dirname
22sys.path.insert(0, dirname(dirname(abspath(__file__))))
23sys.path.append(".")
24
25import coopr.sucasa.main_script
26
27coopr.sucasa.main_script.run()
28
Note: See TracBrowser for help on using the repository browser.