We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When running LNS, it seems that an array of var int isn't correctly sent to the output model.
array of var int
This refers to the feature/minisearch branch at commit MiniZinc/libminizinc@18a7cb2
When trying to run the following minimal LNS,
include "minisearch.mzn"; array[1..2] of var 0..10: xs; constraint xs[2] <= 8; var 0..18: obj; constraint obj = xs[1] + xs[2]; constraint xs[1] < xs[2]; output["XS = \(xs), obj = \(obj)"]; solve search lns_max(obj, xs, 5, 0.5) /\ if hasSol() then print() else print("No solution found\n") endif;
I get the error
MiniZinc: evaluation error: could not find solution for unknown identifier: X_INTRODUCED_0
where X_INTRODUCED_0 isxs[1], according to the compiled FlatZinc.
X_INTRODUCED_0
xs[1]
However, substituting the IntVar-Array by individual identifiers works:
include "minisearch.mzn"; var 0..10: x; var 0..8: y; var 0..18: obj; constraint obj = x + y; constraint x < y; output["x = \(x), y = \(y), obj = \(obj)"]; solve search lns_max(obj, [x,y], 5, 0.5) /\ if hasSol() then print() else print("No solution found\n") endif;
The problem is not prevalent in commit 218a0cf .
I found that the error is output in line 2108 of builtins.cpp. I could not localize the bug further, though.
Cheers, Alex
The text was updated successfully, but these errors were encountered:
This should basically fix it :
MiniZinc/libminizinc#78
Sorry, something went wrong.
No branches or pull requests
When running LNS, it seems that an
array of var int
isn't correctly sent to the output model.This refers to the feature/minisearch branch at commit MiniZinc/libminizinc@18a7cb2
When trying to run the following minimal LNS,
I get the error
where
X_INTRODUCED_0
isxs[1]
, according to the compiled FlatZinc.However, substituting the IntVar-Array by individual identifiers works:
The problem is not prevalent in commit 218a0cf .
I found that the error is output in line 2108 of builtins.cpp. I could not localize the bug further, though.
Cheers,
Alex
The text was updated successfully, but these errors were encountered: