-
Notifications
You must be signed in to change notification settings - Fork 10
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
Prevent dynamic allocation for plans with negative utility threshold #483
base: devel
Are you sure you want to change the base?
Conversation
bjoernschroeder
commented
Apr 4, 2023
- Prevents dynamic allocation for plans with negative utility threshold
- Skips the creation of RunningPlans and unnecessary calculations
…e threshold for simulation plan
Some background:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does "utilityThreshold": -1.0 already have the meaning that assignments hsould never be changed?
no, but a utility of -1 means that the assignment is invalid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to more generally always skip dynamic allocation for plans where you can guarantee that utility threshold cannot be hit? Like if utility is bounded to [0,1], and current utility is 0.95, then even if utility threshold is 0.1 we already know there is no reason to try dynamic allocation
I tried to look if utility is restricted to [-1,1] anywhere in alica currently, but I couldn't confirm that it indeed is. Atleast there seems to be no limit for max value. But I also think it makes sense to restrict between [-1,1] so let me dig a bit more to explore in this direction |
@@ -157,6 +157,13 @@ PlanChange RuleBook::dynamicAllocationRule(RunningPlan& r) | |||
if (!r.getCycleManagement().mayDoUtilityCheck()) { | |||
return PlanChange::NoChange; | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.