forked from Pyomo/pyomo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Pyomo#2946 from Raphael-D-F-Gomes/bugfix/adjust-mp…
…s-structure Adjusting mps writer to the correct structure regarding integer variables declaration
- Loading branch information
Showing
5 changed files
with
162 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
pyomo/repn/tests/mps/integer_variable_declaration_with_marker.mps.baseline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
* Source: Pyomo MPS Writer | ||
* Format: Free MPS | ||
* | ||
NAME Example-mix-integer-linear-problem | ||
OBJSENSE | ||
MIN | ||
ROWS | ||
N obj | ||
G c_l_const1_ | ||
L c_u_const2_ | ||
COLUMNS | ||
MARK0000 'MARKER' 'INTORG' | ||
x1 obj 3 | ||
x1 c_l_const1_ 4 | ||
x1 c_u_const2_ 1 | ||
MARK0001 'MARKER' 'INTEND' | ||
x2 obj 2 | ||
x2 c_l_const1_ 3 | ||
x2 c_u_const2_ 2 | ||
RHS | ||
RHS c_l_const1_ 10 | ||
RHS c_u_const2_ 7 | ||
BOUNDS | ||
LI BOUND x1 0 | ||
UI BOUND x1 10E20 | ||
LO BOUND x2 0 | ||
ENDATA |
40 changes: 40 additions & 0 deletions
40
pyomo/repn/tests/mps/knapsack_problem_binary_variable_declaration_with_marker.mps.baseline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
* Source: Pyomo MPS Writer | ||
* Format: Free MPS | ||
* | ||
NAME knapsack problem | ||
OBJSENSE | ||
MIN | ||
ROWS | ||
N obj | ||
G c_l_const1_ | ||
COLUMNS | ||
MARK0000 'MARKER' 'INTORG' | ||
x(_1_) obj 3 | ||
x(_1_) c_l_const1_ 30 | ||
x(_2_) obj 2 | ||
x(_2_) c_l_const1_ 24 | ||
x(_3_) obj 2 | ||
x(_3_) c_l_const1_ 11 | ||
x(_4_) obj 4 | ||
x(_4_) c_l_const1_ 35 | ||
x(_5_) obj 5 | ||
x(_5_) c_l_const1_ 29 | ||
x(_6_) obj 4 | ||
x(_6_) c_l_const1_ 8 | ||
x(_7_) obj 3 | ||
x(_7_) c_l_const1_ 31 | ||
x(_8_) obj 1 | ||
x(_8_) c_l_const1_ 18 | ||
MARK0001 'MARKER' 'INTEND' | ||
RHS | ||
RHS c_l_const1_ 60 | ||
BOUNDS | ||
BV BOUND x(_1_) | ||
BV BOUND x(_2_) | ||
BV BOUND x(_3_) | ||
BV BOUND x(_4_) | ||
BV BOUND x(_5_) | ||
BV BOUND x(_6_) | ||
BV BOUND x(_7_) | ||
BV BOUND x(_8_) | ||
ENDATA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters