CP-SAT: find minimal unfeasible subset of constraints

Aperta
#5,675 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
backend

Direzione di ricerca

Start by reading the CP-SAT documentation and the solver’s existing assumptions and infeasibility APIs; the issue does not name specific files or tests. Clarify whether automatic minimal infeasible subset search or a QuickXplain approach fits the library’s scope and where it should be exposed. Done would mean agreeing on the scope and API before implementation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What language and solver does this apply to?
CP-SAT, but would probably be relevant to the others too

Describe the problem you are trying to solve.
In my daily use of the library, I find it often useful to find a minimal unfeasible subset of constraints. Currently, the way of doing this is to "manually" add assumptions and re-solve the problem. This solve seems to be very cost intense in practice.

Describe the solution you'd like
On one hand, I am reflecting if it would make sense to include an option for the solver to automatically (after a first unfeasible result) start a minimal unfeasible subset of constraints search (maybe including the infos of the presolve).
On the other hand, during my use I have found a QuickXplain approach to have better result in practice for models with up to 10k constraints (I say 10k bc that's what I've tested so far).

Before starting to work on a possible PR, I was wondering if this would be in scope with the library and at which level would it make sense to introduce this.

Lingua principale
C++
Stelle
14.5k
Fork
2.6k
Merge medio
9h 43m
PR unite (30g)
53

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di google/or-tools

Tutte le issue di google/or-tools

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.