Struct abc::Candidate
[−]
[src]
pub struct Candidate<S: Clone + Send + Sync + 'static> {
pub solution: S,
pub fitness: f64,
}One solution being explored by the hive, plus additional data.
This implementation was written with the expectation that the
evaluate_fitness
method may be very expensive, so the Candidate struct caches the
computed fitness of its solution.
Fields
solution | Actual candidate solution. |
fitness | Cached fitness of the solution. |