Skip to content

Defined variable with relevant bounds incorrectly removed #691

Description

@MinusKelvin

In 2.7.1, 2.7.2, and 2.7.3, the following model:

var -100..100: a;
var -10..10: c = 2 * a;

flattens to the following flatzinc:

var -100..100: a:: output_var;
solve  satisfy;

which is incorrect. The flattened model has a = -100 as a solution, but this would have c = -200 which violates the bounds on c in the original model.

Metadata

Metadata

Assignees

Labels

resolvedIssue is resolved and the feature or fix will be part of next release

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions