pub struct CbcSolver { /* private fields */ }Expand description
The coin-or cbc solver
Implementations§
Trait Implementations§
Source§impl SolverProgram for CbcSolver
impl SolverProgram for CbcSolver
Source§fn command_name(&self) -> &str
fn command_name(&self) -> &str
Returns the commandline program name
Source§fn arguments(&self, lp_file: &Path, solution_file: &Path) -> Vec<OsString>
fn arguments(&self, lp_file: &Path, solution_file: &Path) -> Vec<OsString>
Returns the commandline arguments
Source§fn preferred_temp_solution_file(&self) -> Option<&Path>
fn preferred_temp_solution_file(&self) -> Option<&Path>
If there is a predefined solution filename
Source§fn parse_stdout_status(&self, _stdout: &[u8]) -> Option<Status>
fn parse_stdout_status(&self, _stdout: &[u8]) -> Option<Status>
Parse the output of the program
Source§fn solution_suffix(&self) -> Option<&str>
fn solution_suffix(&self) -> Option<&str>
A suffix the solution file must have
Source§impl SolverWithSolutionParsing for CbcSolver
impl SolverWithSolutionParsing for CbcSolver
Source§fn read_specific_solution<'a, P: LpProblem<'a>>(
&self,
f: &File,
problem: Option<&'a P>,
) -> Result<Solution, String>
fn read_specific_solution<'a, P: LpProblem<'a>>( &self, f: &File, problem: Option<&'a P>, ) -> Result<Solution, String>
Read a solution from a file
Source§impl WithMaxSeconds<CbcSolver> for CbcSolver
impl WithMaxSeconds<CbcSolver> for CbcSolver
Source§fn max_seconds(&self) -> Option<u32>
fn max_seconds(&self) -> Option<u32>
get max runtime
Source§fn with_max_seconds(&self, seconds: u32) -> CbcSolver
fn with_max_seconds(&self, seconds: u32) -> CbcSolver
set max runtime
Source§impl WithMipGap<CbcSolver> for CbcSolver
impl WithMipGap<CbcSolver> for CbcSolver
Source§impl WithNbThreads<CbcSolver> for CbcSolver
impl WithNbThreads<CbcSolver> for CbcSolver
Source§fn nb_threads(&self) -> Option<u32>
fn nb_threads(&self) -> Option<u32>
get thread count
Source§fn with_nb_threads(&self, threads: u32) -> CbcSolver
fn with_nb_threads(&self, threads: u32) -> CbcSolver
set thread count
Auto Trait Implementations§
impl Freeze for CbcSolver
impl RefUnwindSafe for CbcSolver
impl Send for CbcSolver
impl Sync for CbcSolver
impl Unpin for CbcSolver
impl UnwindSafe for CbcSolver
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