pub struct Outcome {
pub termination: String,
pub claim: String,
pub feasible: Option<bool>,
pub objective: Option<f64>,
pub x: Option<Vec<f64>>,
pub details: Value,
pub evidence: Option<Evidence>,
pub objective_bounds: Option<ObjectiveBounds>,
pub imprecise: bool,
}Expand description
What a worker reports for one task: why it stopped, what it claims and how
the claim is supported. Outcome::check enforces the contract’s rules.
Fields§
§termination: StringWhy the task stopped, in the solver’s words (evaluation_limit,
optimal, converged, cancelled, …). Never a claim.
claim: StringOne of CLAIMS. A non_dominated_set describes a set of points in
details and has no single x or objective.
feasible: Option<bool>Whether the returned point satisfies the model’s constraints within
their tolerances; None if that is unknown.
objective: Option<f64>The objective of x; None without a point or with several
objectives.
x: Option<Vec<f64>>The returned point, finite and nonempty; None if there is none.
details: ValueSolver-specific details such as gaps, residuals, a front or elites (the guide’s section Details).
evidence: Option<Evidence>How the claim is supported. Workers of protocol 0.2 always report it;
a record without it predates 0.2 and is only claimed.
objective_bounds: Option<ObjectiveBounds>Best objective of a feasible point (primal) and a proven bound on the optimum (dual), in the model’s own sense.
imprecise: boolThe engine reported success only at relaxed accuracy. Qualifies the
claim; never set together with none.