mod objective¶
- module objective¶
The
Objectivetrait: typed S -> R map with bounds and optional known minimum. TheObjectivetrait: a typed function Obj : S -> R from the IISE manuscript.Traits
- trait Objective<T: Float>¶
A real-valued function on
R^dimwith a known feasible domain.The IISE manuscript’s
Objsignature: a typed map from a state spaceS = R^dim(withBounds) toR. Implementors may overrideeval_batchandglobal_minfor performance or known-optima instrumentation.Functions
- fn dim(&self) -> usize¶
Number of input dimensions; matches
bounds().dims.
- fn eval(&self, x: ArrayView1<T>) -> T¶
Evaluates the objective at a single point.
- fn eval_batch(&self, x: ArrayView2<T>) -> Array1<T>¶
Evaluates at a batch of points; default implementation iterates
eval.
- fn global_min(&self) -> Option<&FPair<T>>¶
Optional known global minimum, used for benchmarking and convergence checks. Default returns
None.
Implemented for