Skip to content

Change caching copy logic to allow incremental solvers to use a copy_to function #1156

@odow

Description

@odow

Currently, solvers such as GLPK skip copy_to via JuMP, due to the behavior of CachingOptimizer.

model = Model(GLPK.Optimizer)
@variable(model, x)
optimize!(model)

Doesn't use copy_to, even though GLPK provides a fast one.

Rather than making an ad-hoc change, we should take the time to throughly document the caching optimizer system, choose a design that makes the most sense, and then implement that. There are quite a few points at which various layers are added, dropped, emptied, and reset.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions