pub struct SweepOptimizer;Expand description
The built-in default optimizer: the identity functor. It returns the default lexicographic stream unchanged — a full Cartesian sweep, the engine’s ordinary parameter enumeration. Always available, no plugin required (SRD-86 A1).
Trait Implementations§
Source§impl Optimizer for SweepOptimizer
impl Optimizer for SweepOptimizer
Source§fn doc_md(&self) -> &str
fn doc_md(&self) -> &str
User-level documentation, in markdown (SRD-86 §5). Surfaced by
nmbrs describe optimizers.Source§fn coordinate_source(
&self,
_space: &SearchSpace,
_budget: &Budget,
lex: Box<dyn PullSource>,
) -> Box<dyn CoordinateSource>
fn coordinate_source( &self, _space: &SearchSpace, _budget: &Budget, lex: Box<dyn PullSource>, ) -> Box<dyn CoordinateSource>
Build the coordinate source from the param space, the budget, and the
default lex stream.
sweep returns lex unchanged (identity). The
source owns its own termination (budget / convergence); the driver
pulls until it yields None.Source§fn optimize(
&self,
space: &SearchSpace,
obj: &mut dyn Objective,
budget: &Budget,
) -> Report
fn optimize( &self, space: &SearchSpace, obj: &mut dyn Objective, budget: &Budget, ) -> Report
Standalone driver: run the search by pulling this optimizer’s source
and querying
obj, returning a Report. Used for unit testing and
the non-runtime path; the graph executor drives the source itself
(pull-through, observing each phase’s objective wire).Auto Trait Implementations§
impl Freeze for SweepOptimizer
impl RefUnwindSafe for SweepOptimizer
impl Send for SweepOptimizer
impl Sync for SweepOptimizer
impl Unpin for SweepOptimizer
impl UnsafeUnpin for SweepOptimizer
impl UnwindSafe for SweepOptimizer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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