Last change
on this file since 3261 was
2990,
checked in by jwatson, 10 years ago
|
Added option to PySP scripts to allow for output of the scenario tree solutions in CSV file format. Option is --solution-writer=coopr.pysp.csvsolutionwriter.py. This also required some overdue refactoring of the PySP code, plus re-work of how the post-PH extensive form solution is displayed.
|
File size:
745 bytes
|
Line | |
---|
1 | # _________________________________________________________________________ |
---|
2 | # |
---|
3 | # Coopr: A COmmon Optimization Python Repository |
---|
4 | # Copyright (c) 2010 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 | __all__ = ['ISolutionWriterExtension'] |
---|
12 | |
---|
13 | from pyutilib.component.core import * |
---|
14 | |
---|
15 | class ISolutionWriterExtension(Interface): |
---|
16 | |
---|
17 | def write(self, scenario_tree, output_file_prefix): |
---|
18 | """ Called with a ScenarioTree type object.""" |
---|
19 | pass |
---|
Note: See
TracBrowser
for help on using the repository browser.