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

[RFC] add feasibility checker #12

Closed
wants to merge 5 commits into from
Closed

Conversation

joaquimg
Copy link
Collaborator

@joaquimg joaquimg commented Nov 18, 2020

This might end up in a separate package.

It is a possible solution for jump-dev/JuMP.jl#693

@codecov
Copy link

codecov bot commented Nov 18, 2020

Codecov Report

Merging #12 (0aede64) into master (b7351d2) will decrease coverage by 7.41%.
The diff coverage is 92.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
- Coverage   87.34%   79.93%   -7.42%     
==========================================
  Files           5        5              
  Lines         332      294      -38     
==========================================
- Hits          290      235      -55     
- Misses         42       59      +17     
Impacted Files Coverage Δ
src/MathOptSetDistances.jl 100.00% <ø> (ø)
src/feasibility_checker.jl 92.72% <92.72%> (ø)
src/distances.jl 50.00% <0.00%> (-25.00%) ⬇️
src/projections.jl 89.00% <0.00%> (-11.00%) ⬇️
src/distance_sets.jl 68.93% <0.00%> (-3.91%) ⬇️
src/chainrules.jl

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 b7351d2...eb72514. Read the comment docs.

joaquimg and others added 2 commits November 19, 2020 16:47
Co-authored-by: Mathieu Besançon <mathieu.besancon@gmail.com>
Co-authored-by: Mathieu Besançon <mathieu.besancon@gmail.com>

largest, vec = constraint_violation(model, varval = varval, distance_map = distance_map)

str = " Feasibility report\n\n"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe these using a multiline string:
s = """Feasibility report

...
"""

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bump

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree! I will be back soon to it

@matbesancon
Copy link
Owner

Maybe adding docstrings on the functions to see what they are meant to be used for / be doing

@@ -0,0 +1,110 @@
const MOD = MathOptSetDistances
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the module name needed here?

@matbesancon matbesancon closed this Dec 6, 2020
@matbesancon matbesancon reopened this Dec 6, 2020
@matbesancon
Copy link
Owner

re-opening PR to run on actions

joaquimg and others added 2 commits December 21, 2020 20:37
Co-authored-by: Mathieu Besançon <mathieu.besancon@gmail.com>
@matbesancon
Copy link
Owner

I'm not sure about this conflict resolution, feel free to revert if it caused more damage than good

@matbesancon
Copy link
Owner

ok definitely broke something 😬

@joaquimg
Copy link
Collaborator Author

I am writing version 2.0.
Will update soon!

@joaquimg
Copy link
Collaborator Author

so...
I moved it here: joaquimg/FeasibilityOptInterface.jl#1
It grew a little too much and went beyond the scope of this package.

@joaquimg joaquimg closed this Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants