source: trunk/coopr/opt/base/formats.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: 1.4 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
11#
12# The formats that are supported by Pyomo
13#
14__all__ = ['ProblemFormat', 'ResultsFormat']
15
16from pyutilib.enum import Enum
17
18#
19# pyomo - A coopr.pyomo.PyomoModel object
20# cpxlp - A CPLEX LP file
21# nl - AMPL *.nl file
22# mps - A free-format MPS file
23# mod - AMPL *.mod file
24# lpxlp - A LPSolve LP file
25# ospl - An XML file defined by the COIN-OR OS project
26# colin - A COLIN shell command
27# colin_optproblem - A Python object that inherits from
28#                   coopr.opt.colin.OptProblem (this can wrap a COLIN shell
29#                   command, or provide a runtime optimization problem)
30#
31ProblemFormat = Enum('colin', 'pyomo', 'cpxlp', 'nl', 'mps', 'mod', 'lpxlp', 'ospl', 'colin_optproblem')
32
33#
34# sol - AMPL *.sol file
35# osrl - osrl XML file defined by the COIN-OR OS project
36# log - An unformated logfile
37# results - A coopr.opt.SolverResults object
38#
39ResultsFormat = Enum('sol', 'osrl', 'log', 'results')
40
Note: See TracBrowser for help on using the repository browser.