Skip to content

Add support for callbacks #154

@SouthEndMusic

Description

@SouthEndMusic

It would be nice to be able to pass a callback function that is applied after each optimization for an objective (particularly in the case of lexicographic multi-objective optimization). The reason I ask is that I'm having trouble achieving what I want in the constricting context of the lexicographic algorithm. It would look something like

callback!(model::JuMP.model, objective::JuMP.AffExpr, objective_index::Int; my_struct = nothing)

So within the scope of this callback I can access the model to read the values of the decision variables resulting from the latest optimization and modify bounds. Ideally I can also pass a generic object my_struct to store (processed) results. The objective and objective_index can be used to decide what parsing must be done after this particular objective.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions