Skip to content

Preferences for CPO conflict refiner #41

Description

@OrestisLomis

Hi,

I would like to use CP Optimizer’s conflict refiner with a distinction between hard constraints and soft/member constraints.
In the CPLEX MP API, this is possible through conflict refiner groups/preferences, for example with docplex.mp.conflict_refiner.ConstraintsGroup(preference=..., cts=[...]). In particular, a preference of 0.0 can be used for constraints that should be treated as required/hard.
For CP Optimizer, the underlying Concert API appears to support conflict refinement with constraint preferences, but I could not find an equivalent exposed in the Python docplex.cp API. Could docplex.cp expose a way to pass conflict refiner preferences to CpoModel.refine_conflict()?

Kind regards
Orestis

Activity

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