Trait good_lp::solvers::SolverModel[][src]

pub trait SolverModel<F> {
    type Solution: Solution<F>;
    type Error;
    fn with(self, constraint: Constraint<F>) -> Self;
fn solve(self) -> Result<Self::Solution, Self::Error>; }

A solver's own representation of a model, to which constraints can be added.

Associated Types

type Solution: Solution<F>[src]

The type of the solution to the problem

type Error[src]

The error that can occur while solving the problem

Loading content...

Required methods

fn with(self, constraint: Constraint<F>) -> Self[src]

Takes a model and adds a constraint to it

fn solve(self) -> Result<Self::Solution, Self::Error>[src]

Find the solution for the problem being modeled

Loading content...

Implementors

impl<T> SolverModel<T> for CoinCbcProblem<T>[src]

type Solution = CoinCbcSolution<T>

type Error = ResolutionError

impl<T> SolverModel<T> for MiniLpProblem<T>[src]

type Solution = MiniLpSolution<T>

type Error = ResolutionError

Loading content...