Skip to content

fzn-gecode, mod, wrong solutions #170

Closed

Description

@matsc-at-sics-se

On Ubuntu 22.04.2 LTS.

The following model is unsat, but fzn-gecode finds several wrong solutions:

var -5 .. 5: A;
var -5 .. 5: B;
constraint A mod B=B;
solve :: int_search([A,B], input_order, indomain_median) satisfy;

Activity

  1. added a commit that references this issue on Aug 31, 2023
    d1bd874
  2. zayenz commented on Jul 13, 2026

    @zayenz
    Member

    Fixed on main. Variables are now unshared before posting the FlatZinc div and mod constraints, correcting the reported solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions