Commit 9d724b8 1 parent 486a391 commit 9d724b8 Copy full SHA for 9d724b8
File tree 3 files changed +12
-8
lines changed
3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 3
3
system_cost: + 2e-01 Gen_001d01h01 + 2e-01 Gen_001d01h02 + 2e-01 Gen_001d01h03 + 2e-01 Gen_001d01h04 + 2e-01 Gen_001d01h05 + 2e-01 Gen_001d01h06 + 2e-01 Gen_001d01h07 + 2e-01 Gen_001d01h08 + 2e-01 Gen_001d01h09 + 2e-01 Gen_001d01h10
4
4
+ 2e-01 Gen_001d01h11 + 2e-01 Gen_001d01h12 + 2e-01 Gen_001d01h13 + 2e-01 Gen_001d01h14 + 2e-01 Gen_001d01h15 + 2e-01 Gen_001d01h16 + 2e-01 Gen_001d01h17 + 2e-01 Gen_001d01h18 + 2e-01 Gen_001d01h19 + 2e-01 Gen_001d01h20
5
5
Subject To
6
- dummy_constraint: Gen_001d01h01 + Gen_001d01h02 <= 1000
6
+ dummy_constraint: Gen_001d01h01 + Gen_001d01h02 + 59.983048643 SO_0_ThPl_GB.Steven's.Croft.(4494) - 0.200000000 STU_7_HyRes_AL.AGG.Hydro.Res.(2857) <= 1000
7
7
Bounds
8
8
0 <= Gen_001d01h01 <= 1.0
9
9
0 <= Gen_001d01h02 <= +infinity
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ VALID_COMMENT_CHARS = _{
45
45
| "@"
46
46
| "_"
47
47
| "‘"
48
- | "’"
49
48
| "{"
50
49
| "}"
51
50
| "~"
@@ -74,20 +73,19 @@ VALID_LP_CHARS = _{
74
73
| "@"
75
74
| "_"
76
75
| "‘"
77
- | "’"
78
76
| "{"
79
77
| "}"
80
78
| "~"
79
+ | "'"
81
80
}
82
- VARIABLE_SUBSET = ${
81
+ VARIABLE_SUBSET = ${
83
82
!(
84
83
FREE | END | SOS_SECTION | CONSTRAINT_SECTION | BOUND_SECTION | BINARIES_SECTION | SEMI_CONTINUOUS_SECTION
85
84
) ~ VALID_LP_CHARS{1, 255}
86
85
}
87
- VARIABLE = ${
86
+ VARIABLE = ${
88
87
!(
89
- FREE | END | SOS_SECTION | CONSTRAINT_SECTION | BOUND_SECTION
90
- | GENERALS_SECTION | BINARIES_SECTION | SEMI_CONTINUOUS_SECTION
88
+ FREE | END | SOS_SECTION | CONSTRAINT_SECTION | BOUND_SECTION | GENERALS_SECTION | BINARIES_SECTION | SEMI_CONTINUOUS_SECTION
91
89
) ~ VALID_LP_CHARS{1, 255}
92
90
}
93
91
@@ -122,7 +120,7 @@ OBJECTIVES = { OBJECTIVE* }
122
120
// Constraints
123
121
// https://www.ibm.com/docs/en/icos/22.1.1?topic=representation-constraints-in-lp-file-format
124
122
CONSTRAINT_SECTION = _{
125
- (^"subject to" | ^"such that" | ^"S.T." | ^"st") ~ COLON? ~ NEWLINE*
123
+ (^"subject to" | ^"such that" | ^"S.T." | ^"st") ~ COLON? ~ NEWLINE+
126
124
}
127
125
GT = { ">" }
128
126
GTE = { ">=" }
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ variables:
33
33
Gen_001d01h18 : General
34
34
Gen_001d01h19 : General
35
35
Gen_001d01h20 : General
36
+ " SO_0_ThPl_GB.Steven's.Croft.(4494)" : General
37
+ STU_7_HyRes_AL .AGG .Hydro .Res .(2857 ): General
36
38
objectives :
37
39
- name : system_cost
38
40
coefficients :
@@ -85,5 +87,9 @@ constraints:
85
87
coefficient : 1
86
88
- var_name : Gen_001d01h02
87
89
coefficient : 1
90
+ - var_name : " SO_0_ThPl_GB.Steven's.Croft.(4494)"
91
+ coefficient : 59.983048643
92
+ - var_name : STU_7_HyRes_AL .AGG .Hydro .Res .(2857 )
93
+ coefficient : - 0.2
88
94
sense : " <="
89
95
rhs : 1000
You can’t perform that action at this time.
0 commit comments