SuggestProposal#
The score of the final working state of a Project::suggest_assignments call: its cost, the number of resources in use, and its metrics against the reference state. You read it from SuggestResult::proposed. It isn't built by hand.
Compare it with SuggestResult::baseline, which holds the same cost and resource count for the reference state.
Declaration#
With the serde feature, SuggestProposal implements Serialize only, with camelCase field names. leveled is left out when it's None.
Fields#
| Field | Type | Description |
|---|---|---|
cost |
f64 |
Cost of the final working state on the scoring stage, new-resource penalty included. Lower is better. |
resources |
u32 |
Resources of the counted pool that have at least one active assignment in the final working state. Counted the same way as AssignTotal::resources. |
scheduled |
Metrics |
Metrics of the scheduled stage, with deltas against the reference state. |
leveled |
Option<LeveledMetrics> |
Metrics of the leveled stage plus the leveling summary. Some only when SuggestOptions::level is set, and None when the scheduled stage is cyclic. |
scheduled and leveled come from the last accepted step; no extra run is made for them. When no step was taken, they describe the reference state itself: scheduled deltas are zero, while leveled deltas can be non-zero.
For how the state cost and the new-resource penalty are computed, and when a commit can differ from proposed, see Suggesting assignments.
Example#
dev1 already works on task A. Slot B#1 is filled with leveling on, and the proposal is printed next to the reference state.
use ;
Related#
SuggestResult- carries this value in itsproposedfieldAssignTotal- the reference-state score to compare againstSuggestOptions-levelandnew_resource_penaltyshape this score- Suggesting assignments - shows reading the proposal's cost and metrics