SolverWithSolutionParsing

Trait SolverWithSolutionParsing 

Source
pub trait SolverWithSolutionParsing {
    // Required method
    fn read_specific_solution<'a, P: LpProblem<'a>>(
        &self,
        f: &File,
        problem: Option<&'a P>,
    ) -> Result<Solution, String>;

    // Provided methods
    fn read_solution<'a, P: LpProblem<'a>>(
        &self,
        temp_solution_file: &str,
        problem: Option<&'a P>,
    ) -> Result<Solution, String> { ... }
    fn read_solution_from_path<'a, P: LpProblem<'a>>(
        &self,
        temp_solution_file: &Path,
        problem: Option<&'a P>,
    ) -> Result<Solution, String> { ... }
}
Expand description

A solver that can parse a solution file

Required Methods§

Source

fn read_specific_solution<'a, P: LpProblem<'a>>( &self, f: &File, problem: Option<&'a P>, ) -> Result<Solution, String>

Read a solution from a file

Provided Methods§

Source

fn read_solution<'a, P: LpProblem<'a>>( &self, temp_solution_file: &str, problem: Option<&'a P>, ) -> Result<Solution, String>

👎Deprecated

Use read_solution_from_path instead.

Source

fn read_solution_from_path<'a, P: LpProblem<'a>>( &self, temp_solution_file: &Path, problem: Option<&'a P>, ) -> Result<Solution, String>

Read a solution

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§