Configuration
TOML-based solver configuration with SolverConfig.
The solver takes your domain model and constraints, then searches for the best solution using metaheuristic algorithms. Configuration controls which algorithms run, how long to search, and how moves are selected.
use solverforge::prelude::*;
static MANAGER: SolverManager<Schedule> = SolverManager::new();
let config = SolverConfig::from_toml_str(r#"
[termination]
seconds_spent_limit = 30
"#).unwrap();
let (job_id, rx) = MANAGER.solve(problem);
// Receive improving solutions via channel
for (solution, score) in rx {
println!("New best score: {:?}", score);
}
TOML-based solver configuration with SolverConfig.
Construction heuristic, local search, exhaustive search, partitioned search, and VND.
Move types, selectors, and the zero-allocation MoveArena.
Control when the solver stops — time limits, step counts, score targets, and composites.
Run and manage solver instances with channel-based streaming.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.