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

Remove old debugging code #137

Merged

Conversation

bknueven
Copy link
Collaborator

This has occasionally become the source of trouble when using the day-ahead market model. The solver may report a higher objective due to numerical tolerance issues which are difficult to pin down precisely.

@bknueven bknueven enabled auto-merge (rebase) February 22, 2022 18:50
@bknueven bknueven requested a review from jsiirola February 28, 2022 17:02
output_filename = 'ruc_results.json'
ruc_results.write(output_filename)

raise RuntimeError("Halting due to bug in pricing.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this an actual error? Alternatively, should this at least log a warning?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe? Based on @xiangao1's experience it's hard to say.

This was originally some sanity-checking code I had added. But I think due to MIP tolerances (e.g., 0.99999 is "integer") the objective function after fixing the binaries can be arbitrarily far away from the objective function reported by the MIP solve. In theory, of course, the all of the price methods fix and/or relax binary variables from the MIP solve, which should result in a no-higher objective value.

In the end I thought just eliminating this code was best, because I think it gives too many false-positives. But I'm open to making this a warning.

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK - I am all for removing the exception. I am torn if leaving in a warning would be useful.

@bknueven bknueven merged commit 1831346 into grid-parity-exchange:main Feb 28, 2022
@bknueven bknueven deleted the remove_market_debugging branch February 28, 2022 17:45
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