pub trait ProblemFactory: Send {
    type Problem: Problem;

    fn specification(&self) -> Result<ProblemSpec>;
    fn create_problem(&self, rng: ArcRng) -> Result<Self::Problem>;
}
Expand description

This trait allows creating instances of a problem.

Required Associated Types

The type of the problem instance created by this factory.

Required Methods

Returns the specification of the problem created by this factory.

Creates a problem instance.

Implementors