Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add variable indices context to variable bridges #920

Merged
merged 4 commits into from Oct 24, 2019

Conversation

blegat
Copy link
Member

@blegat blegat commented Oct 13, 2019

As the variable bridges substitute user (bridged) variables into
solver variables, the solver and the bridges that are created by this bridge are
using the solver variables while the user and other bridges are using
the user variables.

Before this commit, the solver variables where substituted for the user
variables even when the call was coming from a bridge that was created
(directly or indirectly) by the bridge that created these variables.
This causes issues if the call was for getting a function which should
then be converted into a VectorOfVariables as even if it is a
VectorOfVariables in terms of the solver variables, it may not be a
VectorOfVariables in terms of the user variables.

@blegat blegat added the Submodule: Bridges About the Bridges submodule label Oct 13, 2019
@blegat blegat added this to the v0.9.6 milestone Oct 13, 2019
@blegat blegat force-pushed the bl/variable_bridges_context branch from bb106f6 to b385d1b Compare October 16, 2019 13:59
@codecov-io
Copy link

codecov-io commented Oct 16, 2019

Codecov Report

Merging #920 into master will increase coverage by 0.01%.
The diff coverage is 97.59%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #920      +/-   ##
==========================================
+ Coverage   95.24%   95.25%   +0.01%     
==========================================
  Files          83       83              
  Lines        8895     8940      +45     
==========================================
+ Hits         8472     8516      +44     
- Misses        423      424       +1
Impacted Files Coverage Δ
src/Bridges/bridge_optimizer.jl 95.82% <100%> (+0.06%) ⬆️
src/Bridges/Variable/map.jl 98.83% <96%> (-0.42%) ⬇️
src/Bridges/Variable/zeros.jl 92.3% <0%> (-7.7%) ⬇️
src/Bridges/Variable/single_bridge_optimizer.jl 40% <0%> (+10%) ⬆️

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 82eaed2...5b220c6. Read the comment docs.

As the variable bridges substitute user (bridged) variables into
solver variables, the solver and the bridges that are created by this bridge are
using the solver variables while the user and other bridges are using
the user variables.

Before this commit, the solver variables where substituted for the user
variables even when the call was coming from a bridge that was created
(directly or indirectly) by the bridge that created these variables.
This causes issues if the call was for getting a function which should
then be converted into a VectorOfVariables as even if it is a
VectorOfVariables in terms of the solver variables, it may not be a
VectorOfVariables in terms of the user variables.
@blegat blegat force-pushed the bl/variable_bridges_context branch from b385d1b to c3236c2 Compare October 24, 2019 10:54
@blegat blegat merged commit 9983e18 into master Oct 24, 2019
@odow odow deleted the bl/variable_bridges_context branch December 5, 2019 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Submodule: Bridges About the Bridges submodule
Development

Successfully merging this pull request may close these issues.

None yet

2 participants