pub struct SearchTable {
pub algorithm: SearchAlgorithmFile,
pub max_evaluations: u64,
pub batch_size: usize,
pub objective: Option<ObjectiveTable>,
pub space: Vec<FactorTable>,
pub hill_climb: Option<HillClimbTable>,
pub genetic: Option<GeneticTable>,
pub pse: Option<PatternSpaceTable>,
}Expand description
A search, the [search] table.
The table of the chosen algorithm, [search.hill_climb], [search.genetic] or [search.pse], holds its
settings. A random search has no settings. For any other algorithm, a left-out table takes the algorithm’s
defaults, except for [search.pse], whose axes are needed.
Fields§
§algorithm: SearchAlgorithmFileSearch method.
max_evaluations: u64Number of evaluations that the search can request, re-evaluations included.
batch_size: usizeMaximum number of candidates that one batch evaluates.
objective: Option<ObjectiveTable>Output that a random search, hill climb or genetic algorithm scores.
space: Vec<FactorTable>Factors the search varies, in the form a block’s factors take.
hill_climb: Option<HillClimbTable>Settings of a hill climb, the [search.hill_climb] table.
genetic: Option<GeneticTable>Settings of a genetic algorithm, the [search.genetic] table.
pse: Option<PatternSpaceTable>Settings of a Pattern Space Exploration, the [search.pse] table.
Trait Implementations§
Source§impl Clone for SearchTable
impl Clone for SearchTable
Source§impl Debug for SearchTable
impl Debug for SearchTable
Source§impl<'de> Deserialize<'de> for SearchTable
impl<'de> Deserialize<'de> for SearchTable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<&SearchSpec> for SearchTable
impl From<&SearchSpec> for SearchTable
Source§fn from(search: &SearchSpec) -> Self
fn from(search: &SearchSpec) -> Self
Writes the settings of the chosen algorithm in full, in its own table.
Source§impl PartialEq for SearchTable
impl PartialEq for SearchTable
Source§impl Serialize for SearchTable
impl Serialize for SearchTable
impl StructuralPartialEq for SearchTable
Auto Trait Implementations§
impl Freeze for SearchTable
impl RefUnwindSafe for SearchTable
impl Send for SearchTable
impl Sync for SearchTable
impl Unpin for SearchTable
impl UnsafeUnpin for SearchTable
impl UnwindSafe for SearchTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more