-
Notifications
You must be signed in to change notification settings - Fork 5
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
Allocation based on equal ratio #1348
Comments
This amounts to switching to the |
I think almost every hydrologists wants this ratio based approach 99% of the time. If you don't find that convincing: anything that leaves some aspect of the distribution undefined is not a usable objective function. The reason is that it breaks the reproducibility of your simulations. If I have user A and user B with the same priorities and the objective function is equally happy with the following results:
It will pick one seemingly "at random" (behind the scenes maybe based on node number or graph traversal order or whatever). This could mean that if you remove node A, change your mind and add it again, maybe it will now "randomly" prioritize the other one instead. In that case you have two models which are essentially fully equivalent, but with potentially radically different outcomes. |
Wait, yesterday I also thought what was suggested was the same as switching to For |
@Huite I completely agree that the problem should be fully constrained and in some abstract sense continuous, in that small changes to the model should lead to small changes in the allocation outcome. The current objective function indeed has a problem in that regard. @visr you are right, but we are heading back to the discussions we had about fair distribution of flows much earlier on in the allocation discussions. You are essentially talking about maximizing the minimum fraction allocated, but that has its own flaws. The problem there is that the optimizer doesn't care about bringing more flow to some user unless it can raise the allocated fraction of all users. I think the |
The objective function that results in these equal ratios is slightly different from the ones used before, see #1366. |
Fixes #1348. The objective function I found that leads to equal fraction allocation has terms of the form $$ d\left(1 - \frac{F}{d}\right)^2 = \left(\sqrt{d} - \frac{F}{\sqrt{d}}\right)^2 = \frac{F^2}{d} - 2F + d. $$ I can't explain yet why this works.
What
Allocation should be done with equal ratio among demands with the same priority.
Why
As requested/agreed upon at TKI-workshop (April 2,2024)
The text was updated successfully, but these errors were encountered: