Skip to content

Some float equality constraints are ignored #514

Closed
@sbronson

Description

@sbronson
% f.mzn
var 1.0..2.0: x;
var 1.0..2.0: y;
constraint x = 1.0;
constraint x = y;
solve maximize x;
$ minizinc f.mzn
x = 2.0;
y = 2.0;
----------
==========

I expected x and y to be 1.0. I'm using minizinc 2.5.3 from the Ubuntu 21.04 repositories.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions