Skip to content

feat: Add extended Optimize APIs (model callback, initial values) #544

Description

@toolCHAINZ

Summary

Two missing APIs on the Optimize solver: a callback for intermediate improving models
(enabling early termination and progress reporting), and warm-starting with an initial
variable assignment.

Z3 APIs

  • Z3_optimize_register_model_eh — register a callback invoked each time the optimizer
    finds a new model that improves the objective
  • Z3_optimize_set_initial_value — set an initial value for a variable to warm-start
    the optimization search

Notes

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions