plasmo-dev / Plasmo.jl

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

Update graph backend #65

Closed jalving closed 2 years ago

jalving commented 2 years ago

This PR mainly does 2 things: 1.) Support setting start values for node variables within individual optigraphs. For instance, you can change the start value on an optinode for different optigraphs that contain it. Note that this doesn't work until the first optimize! call has been made on an optigraph containing the node. 2.) Support for adding new optinodes to an optigraph and re-optimizing. Originally, the new optinode was not captured in the optigraph model.

codecov-commenter commented 2 years ago

Codecov Report

Merging #65 (bcd077e) into main (7f88cda) will increase coverage by 0.35%. The diff coverage is 95.74%.

@@            Coverage Diff             @@
##             main      #65      +/-   ##
==========================================
+ Coverage   90.41%   90.77%   +0.35%     
==========================================
  Files          20       20              
  Lines        2284     2297      +13     
==========================================
+ Hits         2065     2085      +20     
+ Misses        219      212       -7     
Impacted Files Coverage Δ
src/moi_backend_node.jl 90.78% <88.88%> (+0.65%) :arrow_up:
src/moi_backend_graph.jl 96.11% <92.85%> (+0.03%) :arrow_up:
src/optigraph.jl 87.46% <100.00%> (+2.15%) :arrow_up:
src/optimizer_interface.jl 90.77% <100.00%> (+0.27%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7f88cda...bcd077e. Read the comment docs.