-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests for obj reformulations, also with .objweight
- Loading branch information
Showing
10 changed files
with
108 additions
and
12 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
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
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
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
20 changes: 20 additions & 0 deletions
20
test/end2end/cases/categorized/fast/multi_obj/obj_abs_01.mod
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,20 @@ | ||
####################################### | ||
## obj_abs_01.mod | ||
## Test objective sense-aware reformulation | ||
## Test .objweight in obj:multi mode | ||
## abs() | ||
####################################### | ||
|
||
var x >=-2 <=5; | ||
var y >=-12 <=3; | ||
|
||
|
||
suffix objpriority IN; | ||
suffix objweight IN; | ||
|
||
## The 1st objective is dummy, to enable the multi-objective approach | ||
minimize ObjD: 3*x - 2*y suffix objpriority 1, suffix objweight 1; | ||
maximize Obj1: abs(x) - 2*abs(y) suffix objpriority 2, suffix objweight -2; | ||
|
||
s.t. C1: 3*x - 2*y == 13; | ||
|
20 changes: 20 additions & 0 deletions
20
test/end2end/cases/categorized/fast/multi_obj/obj_abs_02.mod
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,20 @@ | ||
####################################### | ||
## obj_abs_02.mod | ||
## Test objective sense-aware reformulation | ||
## Test .objweight in obj:multi mode | ||
## abs() | ||
####################################### | ||
|
||
var x >=-2 <=5; | ||
var y >=-12 <=3; | ||
|
||
|
||
suffix objpriority IN; | ||
suffix objweight IN; | ||
|
||
## The 1st objective is dummy, to enable the multi-objective approach | ||
minimize ObjD: 3*x - 2*y suffix objpriority 1, suffix objweight -1; | ||
maximize Obj1: abs(x) - 2*abs(y) suffix objpriority 2, suffix objweight 3; | ||
|
||
s.t. C1: 3*x - 2*y == 13; | ||
|
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
48e0d82
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#239 #240