source: coopr.pyomo/stable/2.3/coopr/pyomo/tests/examples/test1.txt @ 2315

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

Merged revisions 2232-2314 via svnmerge from
https://software.sandia.gov/svn/public/coopr/coopr.pyomo/trunk

........

r2242 | wehart | 2010-02-01 20:08:36 -0700 (Mon, 01 Feb 2010) | 2 lines


Documentation update.

........

r2244 | wehart | 2010-02-01 20:10:18 -0700 (Mon, 01 Feb 2010) | 2 lines


Tagging coopr.pyomo 2.3 release

........

r2253 | wehart | 2010-02-03 13:57:16 -0700 (Wed, 03 Feb 2010) | 2 lines


Changes due to termination condition refinement

........

r2264 | wehart | 2010-02-05 08:20:30 -0700 (Fri, 05 Feb 2010) | 3 lines


Misc rework of the scripting modules. These changes allow this
functionality to be used more effectively within other Python scripts.

........

r2274 | wehart | 2010-02-06 08:13:24 -0700 (Sat, 06 Feb 2010) | 8 lines


Added the 'include' command, which can include other *.dat files. This works
like the AMPL include command, with the exception that it must be terminated by
a semicolon.


Reworked the AMPL datafile plugin to simple execute an include command
on a *.dat file. This rework has the advantage that filename/lineno information
is now propigated throught he AMPL command processing.

........

r2278 | wehart | 2010-02-07 13:06:10 -0700 (Sun, 07 Feb 2010) | 7 lines


A major rework of the parsing of data command files (formerly known
as AMPL DAT files). This rework is the first step towards a full
parse of these files. I've used PLY to lex/yacc these files. This should
resolve a variety of issues that we've observed relating to the sensitivity of
the old parser to whitespace. This is also a first step towards a careful parse
of command lines for the 'import' command.

........

r2279 | wehart | 2010-02-08 06:07:14 -0700 (Mon, 08 Feb 2010) | 2 lines


Adding support for a basic 'import' command.

........

r2283 | jwatson | 2010-02-08 11:28:22 -0700 (Mon, 08 Feb 2010) | 1 line


Added suffix option to pyomo script, to enable specification of suffixes on the command-line.

........

r2285 | wehart | 2010-02-08 11:48:54 -0700 (Mon, 08 Feb 2010) | 2 lines


Working through more examples of the 'import' command.

........

r2287 | wehart | 2010-02-08 12:12:41 -0700 (Mon, 08 Feb 2010) | 2 lines


Adding a script to test the parser.

........

r2289 | wehart | 2010-02-08 15:13:22 -0700 (Mon, 08 Feb 2010) | 4 lines


Setting up 'import' tests for the other simple examples.
These seem to work, but the internal code is too ugly. I'm
going to clean that up next to help explain what is going on...

........

r2292 | wehart | 2010-02-09 12:21:24 -0700 (Tue, 09 Feb 2010) | 10 lines


Rework of the 'import' semantics. This supports
a simple import semantics, such as:


import foobar.tab: [A,B] X Y Z;


as well as index/parameter renaming:


import foobar.tab: J=[A,B] R=X S=Y T=Z;

........

r2293 | wehart | 2010-02-09 14:22:23 -0700 (Tue, 09 Feb 2010) | 2 lines


Bug fix for dealing with MS Windows filenames.

........

r2295 | wehart | 2010-02-09 16:23:37 -0700 (Tue, 09 Feb 2010) | 4 lines


Reworking tests to do basic evaluation of the
interface to Excel spreadsheets.

........

r2302 | wehart | 2010-02-09 20:25:42 -0700 (Tue, 09 Feb 2010) | 2 lines


Adding tests for loading sets and parameters from spreadsheets.

........

r2303 | wehart | 2010-02-09 20:50:12 -0700 (Tue, 09 Feb 2010) | 2 lines


Adding a plugin for reading CSV files.

........

r2304 | wehart | 2010-02-09 20:51:27 -0700 (Tue, 09 Feb 2010) | 4 lines


Renaming csv.py to csv_table.py


The former filename masked the system 'csv' module. :P

........

r2305 | wehart | 2010-02-09 20:57:12 -0700 (Tue, 09 Feb 2010) | 2 lines


Adding CSV data files for the tutorial.

........

r2306 | wehart | 2010-02-09 20:58:42 -0700 (Tue, 09 Feb 2010) | 2 lines


Adding tests for importing CSV files.

........

r2307 | wehart | 2010-02-09 22:02:40 -0700 (Tue, 09 Feb 2010) | 3 lines


Adding a test that is used to verify that data commands can include indexed variables with astrices
in their arguments.

........

r2309 | wehart | 2010-02-10 22:06:28 -0700 (Wed, 10 Feb 2010) | 3 lines


Misc edits, which preserve some data that I was playing with to validate some
advanced parser features.

........

r2310 | wehart | 2010-02-10 22:38:44 -0700 (Wed, 10 Feb 2010) | 2 lines


Generalizing parsing behavior for set strings.

........

File size: 1.4 KB
Line 
1
2# ==========================================================
3# = Solver Results                                         =
4# ==========================================================
5
6# ----------------------------------------------------------
7#   Problem Information
8# ----------------------------------------------------------
9Problem:
10- Lower bound: 181.99977
11  Upper bound: inf
12  Number of objectives: 1
13  Number of constraints: 38
14  Number of variables: 36
15  Number of nonzeros: 96
16  Sense: minimize
17
18# ----------------------------------------------------------
19#   Solver Information
20# ----------------------------------------------------------
21Solver:
22- Status: ok
23  Termination condition: unknown
24  Error rc: 0
25
26# ----------------------------------------------------------
27#   Solution Information
28# ----------------------------------------------------------
29Solution:
30- number of solutions: 1
31  number of solutions displayed: 1
32- Gap: 0.0
33  Status: optimal
34  Objective:
35    f:
36      Id: 0
37      Value: 181.99977
38  Variable:
39    x[1,1]:
40      Id: 0
41      Value: 1
42    x[1,2]:
43      Id: 1
44      Value: 1
45    x[1,3]:
46      Id: 2
47      Value: 1
48    x[1,4]:
49      Id: 3
50      Value: 1
51    x[1,5]:
52      Id: 4
53      Value: 1
54    x[1,6]:
55      Id: 5
56      Value: 1
57    y[1]:
58      Id: 30
59      Value: 1
60    y[2]:
61      Id: 31
62      Value: 1
63    y[5]:
64      Id: 34
65      Value: 1
Note: See TracBrowser for help on using the repository browser.