-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding a explicit check for sequence size and surjectivity - fixes #446…
… (#611)
- Loading branch information
1 parent
2ffcff2
commit da5e5f3
Showing
6 changed files
with
56 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
letting s be sequence(1,2,3,4,5) |
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 @@ | ||
letting s be sequence(1,2,3,4) |
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 @@ | ||
given s: sequence (size 5, surjective) of int(1..10) |
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,5 @@ | ||
rm -rf conjure-output *.solution | ||
conjure solve model.essence inst.param 2>&1 | ||
rm -rf conjure-output *.solution | ||
conjure solve model.essence inst2.param 2>&1 | ||
rm -rf conjure-output *.solution |
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 @@ | ||
Generating models for model.essence | ||
Generated models: model000001.eprime | ||
Saved under: conjure-output | ||
Savile Row: model000001.eprime inst.param | ||
Error: | ||
The value is not a member of the domain. | ||
Value : sequence(1, 2, 3, 4, 5) | ||
Domain: sequence {ExplicitBounded} (size 5, surjective) of int(1..10) | ||
Reason: Domain attributes are not satisfied. | ||
Specifically: surjective | ||
Generating models for model.essence | ||
Generated models: model000001.eprime | ||
Saved under: conjure-output | ||
Savile Row: model000001.eprime inst2.param | ||
Error: | ||
The value is not a member of the domain. | ||
Value : sequence(1, 2, 3, 4) | ||
Domain: sequence {ExplicitBounded} (size 5, surjective) of int(1..10) | ||
Reason: Domain attributes are not satisfied. | ||
Specifically: size 5 |