ResourceOverload#
The overload of one resource in one evaluation stage, paired with its difference from the baseline. It's read from Overload::resources, where it covers the whole stage, and from FocusOverload::resources, where it covers the span of one focus task. Project::evaluate returns it; it isn't built by hand.
Declaration#
With the serde feature (cargo add plen-core --features serde), ResourceOverload also implements Serialize and Deserialize with camelCase field names.
Fields#
| Field | Type | Description |
|---|---|---|
resource |
Id |
Id of the resource. |
overload |
Amount |
value is the sum, over the buckets the container covers, of the load above the resource's capacity, in capacity × buckets. delta is value minus the same sum on the baseline. |
Which resources get an entry, and in what order, is set by the container. See Overload and FocusOverload.
Example#
Score a candidate that adds a second assignment for dev1 and print the overload of each resource.
use ;
Related#
Overload- lists it for the whole stageFocusOverload- lists it for the span of one focus taskResourceLoad- per-bucket load and capacity of one resource- Evaluating Alternatives - reading overload per resource