Skip to main content

Crate eindir_core

Crate eindir_core 

Source
Expand description

eindir-core: typed primitives for ND objective functions.

This crate ships the typed primitives (FPair, Bounds, Objective trait, gradients, surrogates, point sets, and builtin objective implementations) consumed by anneal-core.

Re-exports§

pub use additive::AdditiveSurrogate;
pub use bounds::Bounds;
pub use error::Error;
pub use features::BoxGeometry;
pub use features::box_geometry;
pub use features::compensated_delta;
pub use features::isotropic_proposal_scale;
pub use fpair::FPair;
pub use gle::GleThermostat;
pub use gle::OPTIMAL_SAMPLING_NS;
pub use gle::ldl_sqrt;
pub use gle::matrix_exp;
pub use gle::optimal_sampling_drift;
pub use gradient::AnalyticGradient;
pub use gradient::DifferentiableObjective;
pub use gradient::FiniteDiffGradient;
pub use gradient::Gradient;
pub use objective::EVAL_BATCH_PARALLEL_MIN;
pub use objective::Objective;
pub use objective::eval_batch_parallel;
pub use objectives::Ackley;
pub use objectives::Rastrigin;
pub use objectives::Rosenbrock;
pub use objectives::StybTang2D;
pub use pointset::boundary_anchored_low_discrepancy_points;
pub use pointset::halton_points;
pub use pointset::halton_unit;
pub use pointset::low_discrepancy_points;
pub use pointset::radical_inverse;
pub use pointset::shifted_halton_points;
pub use pointset::shifted_low_discrepancy_points;
pub use reduced::ChebyshevSurrogate;
pub use reduced::ReducedObjective;

Modules§

additive
Separable rank-1 surrogate and its tempered independence sampler. Separable rank-1 surrogate: the base case of the functional tensor train.
bounds
Box bounds on N-dimensional points. Box bounds on N-dimensional points with sampling and clipping.
error
Error types shared by all fallible operations in eindir-core.
features
Box geometry features and compensated ΔE. Measurable problem geometry and compensated energy differences.
fpair
Position-value pairs. Position-value pairs: a typed (Array1<T>, T) tuple with helpers.
gle
Generalized Langevin equation colored-noise thermostat (optimal sampling). Generalized Langevin equation (GLE) colored-noise thermostat, in the Markovian extended-phase-space form of Ceriotti, Bussi and Parrinello.
gradient
Gradient trait and adapters (Analytic / FiniteDiff) plus DifferentiableObjective. “Native” gradients when the caller can supply them (Ceres-style); explicit central differences otherwise. Gradient<T> and DifferentiableObjective<T>: first-derivative support for the typed Obj algebra.
objective
The Objective trait: typed S -> R map with bounds and optional known minimum. The Objective trait: a typed function Obj : S -> R from the IISE manuscript.
objectives
Builtin objective-function implementations for benchmarking and tests. Builtin objective-function implementations for benchmarking and tests.
pointset
Low-discrepancy point sets for bounded numerical objectives. Low-discrepancy point sets for bounded numerical objectives.
reduced
Dimension-collapse and Chebyshev surrogate Obj-transforms. Dimension-collapse and Chebyshev surrogate components for the typed algebra.
types
Shared algebra-facing type definitions. Shared algebra-facing type definitions.