pub struct SolverClpCmd { /* private fields */ }
Expand description
Interface to the optimization solver Clp from COIN-OR that utilzes the command-line tool “clp”.
The command-line tool “clp” needs to be on the system path.
It can solve problems of type ProblemLp.
Implementations§
Source§impl SolverClpCmd
impl SolverClpCmd
Trait Implementations§
Source§impl Solver for SolverClpCmd
impl Solver for SolverClpCmd
Source§fn get_params(&self) -> &HashMap<String, SolverParam>
fn get_params(&self) -> &HashMap<String, SolverParam>
Gets reference of optimization solver parameters.
Source§fn get_params_mut(&mut self) -> &mut HashMap<String, SolverParam>
fn get_params_mut(&mut self) -> &mut HashMap<String, SolverParam>
Gets mutable reference of optimization solver parameters.
Source§fn solve(
&self,
problem: &mut Problem,
) -> Result<(SolverStatus, ProblemSol), SimpleError>
fn solve( &self, problem: &mut Problem, ) -> Result<(SolverStatus, ProblemSol), SimpleError>
Solves optimization problem.
Source§fn get_param(&self, name: &str) -> Option<&SolverParam>
fn get_param(&self, name: &str) -> Option<&SolverParam>
Gets optimization solver parameter value.
Source§fn set_param(
&mut self,
name: &str,
value: SolverParam,
) -> Result<(), SimpleError>
fn set_param( &mut self, name: &str, value: SolverParam, ) -> Result<(), SimpleError>
Sets optimization solver parameter.
Auto Trait Implementations§
impl Freeze for SolverClpCmd
impl RefUnwindSafe for SolverClpCmd
impl Send for SolverClpCmd
impl Sync for SolverClpCmd
impl Unpin for SolverClpCmd
impl UnwindSafe for SolverClpCmd
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more