pub struct SearchReport {
pub ranking: Vec<RankingEntry>,
pub generations: Vec<GenerationSummary>,
pub archive: Vec<ArchiveEntry>,
}Expand description
State of a search, for its output tables and views.
Fields§
§ranking: Vec<RankingEntry>Every candidate a random search, hill climb or genetic algorithm has scored, best first.
Re-evaluations appear under the candidate they repeat. Among equal objectives the lower id comes first.
generations: Vec<GenerationSummary>Every finished generation of a genetic algorithm, in order.
archive: Vec<ArchiveEntry>Every filled cell of a Pattern Space Exploration archive, in cell order.
Implementations§
Source§impl SearchReport
impl SearchReport
Sourcepub fn best(&self) -> Option<&RankingEntry>
pub fn best(&self) -> Option<&RankingEntry>
Returns the best candidate so far, or None before any evaluation or for a Pattern Space Exploration.
Sourcepub fn ranking_entry(&self, candidate_id: u64) -> Option<&RankingEntry>
pub fn ranking_entry(&self, candidate_id: u64) -> Option<&RankingEntry>
Returns candidate candidate_id from the ranking, or None for a candidate missing from the ranking.
Sourcepub fn archive_entry(&self, cell: PatternCell) -> Option<&ArchiveEntry>
pub fn archive_entry(&self, cell: PatternCell) -> Option<&ArchiveEntry>
Returns the archive entry of cell, or None for a cell missing from the archive.
Trait Implementations§
Source§impl Clone for SearchReport
impl Clone for SearchReport
Source§impl Debug for SearchReport
impl Debug for SearchReport
Source§impl Default for SearchReport
impl Default for SearchReport
Source§impl PartialEq for SearchReport
impl PartialEq for SearchReport
impl StructuralPartialEq for SearchReport
Auto Trait Implementations§
impl Freeze for SearchReport
impl RefUnwindSafe for SearchReport
impl Send for SearchReport
impl Sync for SearchReport
impl Unpin for SearchReport
impl UnsafeUnpin for SearchReport
impl UnwindSafe for SearchReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more