-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
46 additions
and
1 deletion.
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
15 changes: 15 additions & 0 deletions
15
test/end2end/cases/categorized/fast/nonlinear/div_by_const.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,15 @@ | ||
#### See if Div/const is well presolved | ||
#### MP does this because AMPL 20240331 does not | ||
#### See if abs() is well redefined (or used well natively) | ||
################################################### | ||
|
||
var x {1..3} >=-200, <=200; | ||
|
||
minimize Unbalance: | ||
sum {i in 1..3} abs(x[i] - sum {i1 in 1..3} x[i1] / 3); | ||
|
||
## Some extra constraints | ||
s.t. C1: sum {I in 1..3} x[I] == 15; | ||
|
||
s.t. C2: x[1] + 2*x[2] + 4*x[3] == 18; | ||
|
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