source: coopr.pysp/stable/2.3/examples/pysp/cap/p_4_2/ScenarioStructure.dat @ 2317

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

Merged revisions 2246-2316 via svnmerge from
https://software.sandia.gov/svn/public/coopr/coopr.pysp/trunk

........

r2246 | wehart | 2010-02-01 21:10:48 -0700 (Mon, 01 Feb 2010) | 2 lines


Tagging coopr.pysp release 2.2

........

r2247 | wehart | 2010-02-01 21:46:08 -0700 (Mon, 01 Feb 2010) | 2 lines


Documentation fix.

........

r2248 | jwatson | 2010-02-03 08:44:59 -0700 (Wed, 03 Feb 2010) | 3 lines


Adding os.path.expanduser wrappers around all directory/filenames, to facilitate correct processing of ~ characters.

........

r2249 | jwatson | 2010-02-03 09:28:25 -0700 (Wed, 03 Feb 2010) | 3 lines


Misc fixes.

........

r2254 | jwatson | 2010-02-03 21:09:38 -0700 (Wed, 03 Feb 2010) | 3 lines


Changed PyomoModelData? call from add_data_mumble() to add().

........

r2255 | jwatson | 2010-02-03 21:38:35 -0700 (Wed, 03 Feb 2010) | 3 lines


Re-factoring of PH options parser code to accomodate MRP work being done by DLW.

........

r2256 | jwatson | 2010-02-03 22:18:11 -0700 (Wed, 03 Feb 2010) | 3 lines


Major speed improvements in the EF writer by avoiding Python deep-copes - saves a few orders of magnitude of run-time.

........

r2260 | jwatson | 2010-02-04 21:44:29 -0700 (Thu, 04 Feb 2010) | 3 lines


Refactoring of ph initialization routines to support sampling and bundling.

........

r2261 | jwatson | 2010-02-04 21:46:37 -0700 (Thu, 04 Feb 2010) | 3 lines


Renaming ph_script module to phinit, which is more accurate with the newly factored, library-like functionality.

........

r2262 | jwatson | 2010-02-04 21:54:50 -0700 (Thu, 04 Feb 2010) | 3 lines


Minor improvement to phinit functionality.

........

r2267 | jwatson | 2010-02-05 15:09:02 -0700 (Fri, 05 Feb 2010) | 3 lines


Initial PySP unit tests!!!

........

r2268 | wehart | 2010-02-05 15:25:52 -0700 (Fri, 05 Feb 2010) | 2 lines


A fix to the tests.

........

r2269 | jwatson | 2010-02-05 15:46:35 -0700 (Fri, 05 Feb 2010) | 3 lines


Added SIZES3 PySP test and added absolute paths to "runph" script.

........

r2270 | jwatson | 2010-02-05 16:01:08 -0700 (Fri, 05 Feb 2010) | 3 lines


PySP tests need absolute output paths!

........

r2271 | jwatson | 2010-02-05 16:20:01 -0700 (Fri, 05 Feb 2010) | 3 lines


Making unit tests for PySP compatible with coverage utilities. Farmer examples work, SIZES3 doesn't for some reason.

........

r2272 | jwatson | 2010-02-05 16:59:46 -0700 (Fri, 05 Feb 2010) | 3 lines


Various fixes to PySP unit tests. Changing name of testphextension to examplephextension - with the test prefix, coverage tests import the module, which causes all kinds of issues.

........

r2275 | jwatson | 2010-02-06 13:45:11 -0700 (Sat, 06 Feb 2010) | 3 lines


Testing improvements. From lpython, the tests run individually just fine. In aggregate, only the first run passes - independent of what test that might be! Something to stare at later....

........

r2277 | jwatson | 2010-02-06 23:30:13 -0700 (Sat, 06 Feb 2010) | 3 lines


Fixed problem with runph --profile option, broken by my recent factoring of phinit.py.

........

r2288 | jwatson | 2010-02-08 13:32:41 -0700 (Mon, 08 Feb 2010) | 3 lines


Significant initialization speed reductions in the WW PH extension for PySP.

........

r2290 | jwatson | 2010-02-08 19:22:32 -0700 (Mon, 08 Feb 2010) | 1 line


Initial commit of multi-stage capacity expansion problem in PySP

........

r2291 | jwatson | 2010-02-08 19:23:24 -0700 (Mon, 08 Feb 2010) | 1 line


Miscellaneous fix to ef writer involving indexed cost variables

........

r2296 | jwatson | 2010-02-09 18:56:48 -0700 (Tue, 09 Feb 2010) | 3 lines


Removing monster-sized LP file from the PySP forestry examples directory.

........

r2297 | jwatson | 2010-02-09 18:59:05 -0700 (Tue, 09 Feb 2010) | 3 lines


The extensive forms in the PySP forestry example were massive - and are now gone.

........

r2298 | jwatson | 2010-02-09 19:03:09 -0700 (Tue, 09 Feb 2010) | 1 line


Removing output logs for PySP network flow example

........

r2299 | jwatson | 2010-02-09 19:04:12 -0700 (Tue, 09 Feb 2010) | 1 line


Removing a big network flow EF

........

r2300 | jwatson | 2010-02-09 19:05:08 -0700 (Tue, 09 Feb 2010) | 3 lines


Removing PySP cap example EF to free up space.

........

r2301 | jwatson | 2010-02-09 19:14:26 -0700 (Tue, 09 Feb 2010) | 1 line


Performance improvements to PH obtained by processing scenario sub-problem results as they come in, instead of waiting for them after a solver barrier sync

........

File size: 4.9 KB
Line 
1set Stages :=
2Stage_1
3Stage_2
4Stage_3
5Stage_4
6;
7
8set Nodes :=
9Node_1_1
10Node_2_1
11Node_2_2
12Node_2_3
13Node_3_1
14Node_3_2
15Node_3_3
16Node_3_4
17Node_3_5
18Node_3_6
19Node_3_7
20Node_3_8
21Node_3_9
22Node_4_1
23Node_4_2
24Node_4_3
25Node_4_4
26Node_4_5
27Node_4_6
28Node_4_7
29Node_4_8
30Node_4_9
31Node_4_10
32Node_4_11
33Node_4_12
34Node_4_13
35Node_4_14
36Node_4_15
37Node_4_16
38Node_4_17
39Node_4_18
40Node_4_19
41Node_4_20
42Node_4_21
43Node_4_22
44Node_4_23
45Node_4_24
46Node_4_25
47Node_4_26
48Node_4_27
49;
50
51param NodeStage :=
52Node_1_1     Stage_1
53Node_2_1     Stage_2
54Node_2_2     Stage_2
55Node_2_3     Stage_2
56Node_3_1     Stage_3
57Node_3_2     Stage_3
58Node_3_3     Stage_3
59Node_3_4     Stage_3
60Node_3_5     Stage_3
61Node_3_6     Stage_3
62Node_3_7     Stage_3
63Node_3_8     Stage_3
64Node_3_9     Stage_3
65Node_4_1     Stage_4
66Node_4_2     Stage_4
67Node_4_3     Stage_4
68Node_4_4     Stage_4
69Node_4_5     Stage_4
70Node_4_6     Stage_4
71Node_4_7     Stage_4
72Node_4_8     Stage_4
73Node_4_9     Stage_4
74Node_4_10     Stage_4
75Node_4_11     Stage_4
76Node_4_12     Stage_4
77Node_4_13     Stage_4
78Node_4_14     Stage_4
79Node_4_15     Stage_4
80Node_4_16     Stage_4
81Node_4_17     Stage_4
82Node_4_18     Stage_4
83Node_4_19     Stage_4
84Node_4_20     Stage_4
85Node_4_21     Stage_4
86Node_4_22     Stage_4
87Node_4_23     Stage_4
88Node_4_24     Stage_4
89Node_4_25     Stage_4
90Node_4_26     Stage_4
91Node_4_27     Stage_4
92;
93
94set Children[Node_1_1] :=
95Node_2_1
96Node_2_2
97Node_2_3
98;
99set Children[Node_2_1] :=
100Node_3_1
101Node_3_2
102Node_3_3
103;
104set Children[Node_2_2] :=
105Node_3_4
106Node_3_5
107Node_3_6
108;
109set Children[Node_2_3] :=
110Node_3_7
111Node_3_8
112Node_3_9
113;
114set Children[Node_3_1] :=
115Node_4_1
116Node_4_2
117Node_4_3
118;
119set Children[Node_3_2] :=
120Node_4_4
121Node_4_5
122Node_4_6
123;
124set Children[Node_3_3] :=
125Node_4_7
126Node_4_8
127Node_4_9
128;
129set Children[Node_3_4] :=
130Node_4_10
131Node_4_11
132Node_4_12
133;
134set Children[Node_3_5] :=
135Node_4_13
136Node_4_14
137Node_4_15
138;
139set Children[Node_3_6] :=
140Node_4_16
141Node_4_17
142Node_4_18
143;
144set Children[Node_3_7] :=
145Node_4_19
146Node_4_20
147Node_4_21
148;
149set Children[Node_3_8] :=
150Node_4_22
151Node_4_23
152Node_4_24
153;
154set Children[Node_3_9] :=
155Node_4_25
156Node_4_26
157Node_4_27
158;
159
160param ConditionalProbability :=
161Node_1_1     1.0
162Node_2_1     0.333333333333
163Node_2_2     0.333333333333
164Node_2_3     0.333333333333
165Node_3_1     0.333333333333
166Node_3_2     0.333333333333
167Node_3_3     0.333333333333
168Node_3_4     0.333333333333
169Node_3_5     0.333333333333
170Node_3_6     0.333333333333
171Node_3_7     0.333333333333
172Node_3_8     0.333333333333
173Node_3_9     0.333333333333
174Node_4_1     0.333333333333
175Node_4_2     0.333333333333
176Node_4_3     0.333333333333
177Node_4_4     0.333333333333
178Node_4_5     0.333333333333
179Node_4_6     0.333333333333
180Node_4_7     0.333333333333
181Node_4_8     0.333333333333
182Node_4_9     0.333333333333
183Node_4_10     0.333333333333
184Node_4_11     0.333333333333
185Node_4_12     0.333333333333
186Node_4_13     0.333333333333
187Node_4_14     0.333333333333
188Node_4_15     0.333333333333
189Node_4_16     0.333333333333
190Node_4_17     0.333333333333
191Node_4_18     0.333333333333
192Node_4_19     0.333333333333
193Node_4_20     0.333333333333
194Node_4_21     0.333333333333
195Node_4_22     0.333333333333
196Node_4_23     0.333333333333
197Node_4_24     0.333333333333
198Node_4_25     0.333333333333
199Node_4_26     0.333333333333
200Node_4_27     0.333333333333
201;
202
203set Scenarios :=
204Scenario_1
205Scenario_2
206Scenario_3
207Scenario_4
208Scenario_5
209Scenario_6
210Scenario_7
211Scenario_8
212Scenario_9
213Scenario_10
214Scenario_11
215Scenario_12
216Scenario_13
217Scenario_14
218Scenario_15
219Scenario_16
220Scenario_17
221Scenario_18
222Scenario_19
223Scenario_20
224Scenario_21
225Scenario_22
226Scenario_23
227Scenario_24
228Scenario_25
229Scenario_26
230Scenario_27
231;
232
233param ScenarioLeafNode :=
234Scenario_1    Node_4_1
235Scenario_2    Node_4_2
236Scenario_3    Node_4_3
237Scenario_4    Node_4_4
238Scenario_5    Node_4_5
239Scenario_6    Node_4_6
240Scenario_7    Node_4_7
241Scenario_8    Node_4_8
242Scenario_9    Node_4_9
243Scenario_10    Node_4_10
244Scenario_11    Node_4_11
245Scenario_12    Node_4_12
246Scenario_13    Node_4_13
247Scenario_14    Node_4_14
248Scenario_15    Node_4_15
249Scenario_16    Node_4_16
250Scenario_17    Node_4_17
251Scenario_18    Node_4_18
252Scenario_19    Node_4_19
253Scenario_20    Node_4_20
254Scenario_21    Node_4_21
255Scenario_22    Node_4_22
256Scenario_23    Node_4_23
257Scenario_24    Node_4_24
258Scenario_25    Node_4_25
259Scenario_26    Node_4_26
260Scenario_27    Node_4_27
261;
262
263param StageCostVariable :=
264Stage_1   StageCost[1]
265Stage_2   StageCost[2]
266Stage_3   StageCost[3]
267Stage_4   StageCost[4]
268;
269
270set StageVariables[Stage_1] :=
271ProcureResource[1,*]
272AmountProcured[1,*]
273;
274set StageVariables[Stage_2] :=
275ProcureResource[2,*]
276AmountProcured[2,*]
277;
278set StageVariables[Stage_3] :=
279ProcureResource[3,*]
280AmountProcured[3,*]
281;
282set StageVariables[Stage_4] :=
283ProcureResource[4,*]
284AmountProcured[4,*]
285;
286
287param ScenarioBasedData := False ;
288
Note: See TracBrowser for help on using the repository browser.