-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify solver package responsibility. #2647
Clarify solver package responsibility. #2647
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benluddy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cc @timflannagan |
70555a4
to
7ac2ed2
Compare
@@ -107,8 +107,8 @@ func (d *litMapping) ConstraintOf(m z.Lit) AppliedConstraint { | |||
} | |||
d.errs = append(d.errs, fmt.Errorf("no constraint corresponding to %s", m)) | |||
return AppliedConstraint{ | |||
Installable: zeroInstallable{}, | |||
Constraint: zeroConstraint{}, | |||
Variable: zeroVariable{}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
// Variable values are the basic unit of problems and solutions | ||
// understood by this package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any value in beefing up this godoc comment to tie it back to the CSP?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a package-level summary that addresses this, PTAL.
Thanks - I think this is a step in the right direction, as variables like |
As part of preparing the resolution component (and subcomponents) for use as a library, this clarifies the responsibility of the solver package as a general-purpose boolean constraint satisfiability solver. Renaming the Variable type -- formerly Installable -- avoids unnecessarily tying it to the resolver package's operator installability use case. The solver package finds solutions to constraint satisfaction problems in general. Signed-off-by: Ben Luddy <[email protected]>
7ac2ed2
to
22edf0e
Compare
/lgtm |
As part of preparing the resolution component (and subcomponents) for
use as a library, this clarifies the responsibility of the solver
package as a general-purpose boolean constraint satisfiability solver.
Renaming the Variable type -- formerly Installable -- avoids
unnecessarily tying it to the resolver package's operator
installability use case. The solver package finds solutions to
constraint satisfaction problems in general.