plasmo-dev / Plasmo.jl

A Platform for Scalable Modeling and Optimization
Other
143 stars 20 forks source link

support reset optimizer for optigraph #94

Closed jalving closed 10 months ago

jalving commented 10 months ago

This PR provides a workaround for issue #87. Sometimes modifying an optigraph fails after a solve if the attached optimizer does not support an incremental update. If needed, a user can call reset_optimizer(graph to reset the optimizer before making changes. Eventually, we should do this automatically by checking whether a modification is supported.

codecov-commenter commented 10 months ago

Codecov Report

Attention: 15 lines in your changes are missing coverage. Please review.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Files Coverage Δ
src/Plasmo.jl 100.00% <ø> (ø)
src/optimizer_interface.jl 87.50% <0.00%> (-0.82%) :arrow_down:
src/optigraph.jl 76.67% <40.00%> (ø)
src/moi_backend_graph.jl 88.69% <0.00%> (-8.45%) :arrow_down:

:loudspeaker: Thoughts on this report? Let us know!.