Trait lp_solvers::lp_format::AsVariable[][src]

pub trait AsVariable {
    fn name(&self) -> &str;
fn is_integer(&self) -> bool;
fn lower_bound(&self) -> f64;
fn upper_bound(&self) -> f64; }

A type that represents a variable. See crate::problem::Variable.

Required methods

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

Variable name. Needs to be unique. See crate::util::UniqueNameGenerator

fn is_integer(&self) -> bool[src]

Whether the variable is forced to take only integer values

fn lower_bound(&self) -> f64[src]

Minimum allowed value for the variable

fn upper_bound(&self) -> f64[src]

Maximum allowed value for the variable

Loading content...

Implementations on Foreign Types

impl<'a, T: AsVariable> AsVariable for &'a T[src]

Loading content...

Implementors

impl AsVariable for Variable[src]

Loading content...