mirror of
https://github.com/mudler/luet.git
synced 2025-08-01 23:41:37 +00:00
Fix priority constraint formula
The parallel solver made the issue more visible, the constraints needed to be less relaxed and needed to be exclusive so our candidate is looked up at it first
This commit is contained in:
parent
e459ddf470
commit
ffea4d8cf9
@ -656,7 +656,7 @@ func (pack *DefaultPackage) buildFormula(definitiondb PackageDatabase, db Packag
|
||||
C = bf.Var(encodedC)
|
||||
// Or the Candidate is true, or all the others might be not true
|
||||
// This forces the CDCL sat implementation to look first at a solution with C=true
|
||||
formulas = append(formulas, bf.Or(bf.Not(A), bf.Or(bf.Or(C, bf.Or(priorityConstraints...)), bf.Or(bf.Not(C), bf.Or(priorityALO...)))))
|
||||
formulas = append(formulas, bf.Or(bf.Not(A), bf.Or(bf.And(C, bf.Or(priorityConstraints...)), bf.And(bf.Not(C), bf.Or(priorityALO...)))))
|
||||
}
|
||||
|
||||
// AMO - At most one
|
||||
|
Loading…
Reference in New Issue
Block a user