pub struct OptimizerConfig {
pub strategy: OptStrategy,
pub beam: BeamConfig,
pub heuristics: HeuristicsConfig,
}Expand description
Top-level optimizer configuration.
Combines strategy selection, beam search settings, and heuristic parameters.
Fields§
§strategy: OptStrategyOptimization strategy (None, Heuristic, or Beam).
beam: BeamConfigBeam search configuration (used when strategy is Beam).
heuristics: HeuristicsConfigHeuristics configuration (used when strategy is Heuristic).
Implementations§
Source§impl OptimizerConfig
impl OptimizerConfig
Sourcepub fn from_env() -> Self
pub fn from_env() -> Self
Create configuration from environment variables.
Reads strategy from env, then populates beam and heuristics config accordingly.
§Environment Variables
MOROK_NOOPT=1- Disable all optimizationsMOROK_BEAM=N- Use beam search with width N
Sourcepub fn builder() -> OptimizerConfigBuilder
pub fn builder() -> OptimizerConfigBuilder
Create an optimizer configuration with builder pattern.
Trait Implementations§
Source§impl Clone for OptimizerConfig
impl Clone for OptimizerConfig
Source§fn clone(&self) -> OptimizerConfig
fn clone(&self) -> OptimizerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptimizerConfig
impl Debug for OptimizerConfig
Source§impl Default for OptimizerConfig
impl Default for OptimizerConfig
Source§fn default() -> OptimizerConfig
fn default() -> OptimizerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OptimizerConfig
impl RefUnwindSafe for OptimizerConfig
impl Send for OptimizerConfig
impl Sync for OptimizerConfig
impl Unpin for OptimizerConfig
impl UnsafeUnpin for OptimizerConfig
impl UnwindSafe for OptimizerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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