Trait lp_solvers::solvers::SolverProgram[][src]

pub trait SolverProgram {
    fn command_name(&self) -> &str;
fn arguments(&self, lp_file: &Path, solution_file: &Path) -> Vec<OsString>; fn preferred_temp_solution_file(&self) -> Option<&Path> { ... }
fn parse_stdout_status(&self, _stdout: &[u8]) -> Option<Status> { ... }
fn solution_suffix(&self) -> Option<&str> { ... } }

An external commandline solver

Required methods

fn command_name(&self) -> &str[src]

Returns the commandline program name

fn arguments(&self, lp_file: &Path, solution_file: &Path) -> Vec<OsString>[src]

Returns the commandline arguments

Loading content...

Provided methods

fn preferred_temp_solution_file(&self) -> Option<&Path>[src]

If there is a predefined solution filename

fn parse_stdout_status(&self, _stdout: &[u8]) -> Option<Status>[src]

Parse the output of the program

fn solution_suffix(&self) -> Option<&str>[src]

A suffix the solution file must have

Loading content...

Implementors

impl SolverProgram for CbcSolver[src]

impl SolverProgram for GlpkSolver[src]

impl SolverProgram for GurobiSolver[src]

Loading content...