Trait good_lp::solvers::SolverModel [−][src]
A solver’s own representation of a model, to which constraints can be added.
Associated Types
type Solution: Solution[src]
The type of the solution to the problem
type Error: Debug[src]
The error that can occur while solving the problem
Required methods
fn solve(self) -> Result<Self::Solution, Self::Error>[src]
Find the solution for the problem being modeled
fn add_constraint(&mut self, c: Constraint) -> ConstraintReference[src]
Adds a constraint to the Model and returns a reference to the index
Provided methods
fn with(self, constraint: Constraint) -> Self where
Self: Sized, [src]
Self: Sized,
Takes a model and adds a constraint to it
Implementors
impl SolverModel for CoinCbcProblem[src]
This is supported on crate feature
coin_cbc only.type Solution = CoinCbcSolution
type Error = ResolutionError
fn solve(self) -> Result<Self::Solution, Self::Error>[src]
fn add_constraint(&mut self, constraint: Constraint) -> ConstraintReference[src]
impl SolverModel for HighsProblem[src]
This is supported on crate feature
highs only.type Solution = HighsSolution
type Error = ResolutionError
fn solve(self) -> Result<Self::Solution, Self::Error>[src]
fn add_constraint(&mut self, constraint: Constraint) -> ConstraintReference[src]
impl SolverModel for LpSolveProblem[src]
This is supported on crate feature
lpsolve only.type Solution = LpSolveSolution
type Error = ResolutionError
fn solve(self) -> Result<Self::Solution, Self::Error>[src]
fn add_constraint(&mut self, constraint: Constraint) -> ConstraintReference[src]
impl SolverModel for MiniLpProblem[src]
This is supported on crate feature
minilp only.