Skip to content
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

Add support for get-objectives #891

Closed
Halbaroth opened this issue Oct 13, 2023 · 4 comments · Fixed by #921
Closed

Add support for get-objectives #891

Halbaroth opened this issue Oct 13, 2023 · 4 comments · Fixed by #921
Assignees
Labels
enhancement frontend optimization This issue is related to optimization in models.
Milestone

Comments

@Halbaroth
Copy link
Collaborator

No description provided.

@Halbaroth Halbaroth added this to the 2.6.0 milestone Oct 13, 2023
@Halbaroth Halbaroth self-assigned this Oct 13, 2023
@bclement-ocp
Copy link
Collaborator

We should use the (get-objectives) command supported by Z3 and OptiMathSAT and hence de-facto standard rather than a custom get-info flag.

@Gbury
Copy link
Collaborator

Gbury commented Oct 13, 2023

Does that mean that (get-objectives) is a statement that is commonly used along (minimize ...) and (maximize ...) ? If so I'll add it to the maxsmt extension in Dolmen. Also, if there are other statements commonly used for maxsmt, it'd be useful to know.

@Halbaroth Halbaroth changed the title Add an option in get-info to print objectives Add support for get-objectives Oct 13, 2023
@bclement-ocp
Copy link
Collaborator

Does that mean that (get-objectives) is a statement that is commonly used along (minimize ...) and (maximize ...) ? If so I'll add it to the maxsmt extension in Dolmen.

ahem 😅

Also, if there are other statements commonly used for maxsmt, it'd be useful to know.

For Z3: Optmization and soft constraints

For OptiMathSAT: https://optimathsat.disi.unitn.it/pages/smt2reference.html

Those two are the solvers I know that implement MaxSMT extensions in the SMT-LIB format; the common ones are minimize, maximize, get-objectives and assert-soft which are those currently in Dolmen's MaxSMT extension.

@Gbury
Copy link
Collaborator

Gbury commented Oct 16, 2023

Does that mean that (get-objectives) is a statement that is commonly used along (minimize ...) and (maximize ...) ? If so I'll add it to the maxsmt extension in Dolmen.

ahem 😅

Point taken, I should sleep a bit more, :p

@Halbaroth Halbaroth added the optimization This issue is related to optimization in models. label Oct 18, 2023
@Halbaroth Halbaroth linked a pull request Nov 28, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement frontend optimization This issue is related to optimization in models.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants