Candidate#
One alternative edit to score: an id and the SchedulingChanges to try. Build a slice of candidates and pass it to Project::evaluate or Project::evaluate_with.
Declaration#
Candidate doesn't implement Default. Build it with a struct literal.
Fields#
| Field | Type | Description |
|---|---|---|
id |
Id |
Label for the candidate. Copied unchanged into CandidateResult::id. Uniqueness isn't checked. |
changes |
SchedulingChanges |
Edits to apply to the copy before scheduling it. |
For how a stale changes.baseline_id or a rejected operation in changes is reported, see Project::evaluate and CandidateResult::error.
Example#
Score two ways to staff task 1: assign dev1 or assign dev2.
use ;
Related#
CandidateResult- the score or error returned for each candidateEvaluateOptions- options applied to every candidate in the callProject::evaluate- the call that scores a slice of candidates- Evaluating Alternatives - how to build and score a set of candidates