Expand description
Black-box optimization + FMQ/QGBS search (domain-agnostic f64 objectives).
For compiled flow-map policies and RLX-graph FMQ training, use rlx-rl.
Re-exports§
pub use bo::Acquisition;pub use bo::BoConfig;pub use bo::bo;pub use gp::GpPosterior;pub use gp::Kernel;pub use gp::cholesky;
Modules§
- acquisition
- Acquisition functions for Bayesian optimisation.
- bo
- Top-level Bayesian optimisation loop.
- gp
- Gaussian-process posterior with RBF and Matérn kernels.
- sampling
- Low-discrepancy / space-filling samplers for design-of-experiments.
- tpe
- Tree-structured Parzen Estimator (Bergstra et al. 2011, Optuna).
Structs§
- Adam
OptConfig - Adam
OptResult - BboSolution
- Bbox
- Cmaes
Config - EsConfig
- Graph
OptConfig - Graph
OptResult - Graph
OptSpec - Parameter bundle for
adam_opt_graph. - Linear
Flow Map - One-step flow map X_{0,1}(a₀) = a₀ + W·a₀ + b (linear MVP analogue).
- Linear
Surrogate - Affine Q(x) ≈ b + w·x trained by ridge regression on logged trajectories.
- PsoConfig
- QSteer
Config - Qgbs
Config - Trajectory
Record - One design point along an optimization or placement run.
Enums§
Constants§
- DEFAULT_
KAPPA - Stability constant for normalized gradient steps (paper κ₁).
Functions§
- adam_
opt_ 1d - adam_
opt_ graph - Compile
grad_with_lossonfwdand run Adam. - adam_
opt_ nd - append_
jsonl - cmaes
- Diagonal CMA-ES. Minimizes
f. - diagonal_
flow_ pairs - Extract
(action, target_velocity)pairs for diagonal flow matching: v* ≈ a₁ − a₀. - eta_
eff_ twin - Adaptive trust radius from twin critic disagreement (paper eq. 13, batch-normalized δ).
- find_
param_ node - Resolve a single
Op::Paramnode by name. - find_
param_ nodes - Resolve param nodes in the same order as
names. - finite_
diff_ grad - Centered finite-difference gradient of
fatx. - fit_
from_ trajectory_ jsonl - fit_
linear_ surrogate - Ridge fit: minimize ‖Xw − y‖² + λ‖w‖² with bias column.
- fmq_
surrogate_ step - FMQ-style online step using surrogate grad: x ← x − η ∇Q / ‖∇Q‖.
- gradcheck_
graph - Central-difference gradcheck for
fwdw.r.t.optimizeparams. - load_
flow_ map - load_
jsonl - load_
surrogate - one_
plus_ one_ es - pso
- q_
guided_ beam_ search - Q-guided beam search (QGBS): renoise → optional trust steer → keep top beam by
f. - q_
steered_ search - Q-steered search: anchor at
x_ref, trust-region gradient steps + random exploration. - q_
steered_ search_ twin - Q-steered search with twin objectives:
cheap(e.g. prescreen) andexpensive(e.g. ngspice). - q_
steered_ search_ with_ grad - Q-steered search with a caller-supplied gradient (e.g. rlx AD); skips finite differences.
- random_
search - save_
flow_ map - save_
surrogate - search_
by_ method - Run random search, Q-steer, or QGBS from a string tag (
"bbo","qsteer","qgbs"). - train_
from_ jsonl - Offline train from JSONL trajectories; returns flow map + training MSE.
- trust_
region_ q_ step - One trust-region step toward lower
f(minimization):x_ref − η · ∇f / (‖∇f‖ + κ).