Skip to content

Make convex solver more robust for weekday correction #1223

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

Merged
merged 3 commits into from
Aug 25, 2021
Merged

Conversation

rumackaaron
Copy link
Contributor

Description

For the doctor visits indicator, we use cvxpy to solve an optimization problem that provides a weekday correction. This solver is not always robust, occasionally it will fail if the magnitude of the objective function is too large. A quick and dirty way to make it more robust is to divide the objective function by some large number.

Changelog

weekday.py: Try up to four times to rescale the objective function, up from two times.

Fixes

  • No issue linked.

@rumackaaron rumackaaron requested a review from krivard August 24, 2021 19:10
Copy link
Contributor

@krivard krivard left a comment

Choose a reason for hiding this comment

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

Great! @korlaxxalrok can you use your cosmic powers to figure out how we can update the code in Maria's directory on bigchunk-dev-03?

@krivard krivard merged commit b190214 into main Aug 25, 2021
@krivard krivard deleted the dv_cvxpy branch August 25, 2021 14:37
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