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

Reduce the number of constants #79

Merged
merged 4 commits into from
Apr 9, 2021
Merged

Reduce the number of constants #79

merged 4 commits into from
Apr 9, 2021

Conversation

exaexa
Copy link
Collaborator

@exaexa exaexa commented Apr 9, 2021

@laurentheirendt this fixes some of the stuff from review of #78, decided to separate it to keep that clean.

Copy link
Collaborator

@stelmo stelmo left a comment

Choose a reason for hiding this comment

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

Nice :)

Comment on lines +9 to +10
sampling_keep_iters = 100,
sampling_size = 1000,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is fine (good size for testing quickly) but not realistic sized, we should put in the docs that the user must make these constants much larger.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

transforming to an issue

@@ -31,6 +31,6 @@
qp_solver_attributes = change_solver_attribute("verbose", false),
)

@test isapprox(d["PGM"], -17.568590034769613, atol = default_constants.TEST_RELAX_TOL)
@test isapprox(v[8], -17.568590034769613, atol = default_constants.TEST_RELAX_TOL) # OSQP sucks
Copy link
Collaborator

Choose a reason for hiding this comment

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

you took away my comment showing disdain for OSQP? :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Arwen voice, elf music playing:
🎵 It shall be buried in git history forever. 🎵
🎵 Only those who look deep enough shall find. 🎵

@exaexa exaexa merged commit d876b3a into mk-recontent Apr 9, 2021
@exaexa exaexa deleted the mk-constants branch April 9, 2021 19:02
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.

None yet

2 participants