Trait grb::attribute::ObjAttrGet [−][src]
A queryable ModelObject
attribute (eg Var
or Constr
)
Required methods
fn get(&self, model: &Model, idx: i32) -> Result<V>
[src]
Get the value for this attribute
fn get_batch<I: IntoIterator<Item = Result<i32>>>(
&self,
model: &Model,
idx: I
) -> Result<Vec<V>>
[src]
&self,
model: &Model,
idx: I
) -> Result<Vec<V>>
Get multiple values for this attribute at once
Implementors
impl ObjAttrGet<Constr, ConstrSense> for ConstrSenseAttr
[src]
fn get(&self, model: &Model, idx: i32) -> Result<ConstrSense>
[src]
fn get_batch<I: IntoIterator<Item = Result<i32>>>(
&self,
model: &Model,
inds: I
) -> Result<Vec<ConstrSense>>
[src]
&self,
model: &Model,
inds: I
) -> Result<Vec<ConstrSense>>
impl ObjAttrGet<Var, VarType> for VarVTypeAttr
[src]
fn get(&self, model: &Model, idx: i32) -> Result<VarType>
[src]
fn get_batch<I: IntoIterator<Item = Result<i32>>>(
&self,
model: &Model,
inds: I
) -> Result<Vec<VarType>>
[src]
&self,
model: &Model,
inds: I
) -> Result<Vec<VarType>>
impl<A> ObjAttrGet<<A as ObjAttr>::Obj, f64> for A where
A: DoubleAttr + ObjAttr + AsCStr,
[src]
A: DoubleAttr + ObjAttr + AsCStr,
fn get(&self, model: &Model, idx: i32) -> Result<f64>
[src]
fn get_batch<I: IntoIterator<Item = Result<i32>>>(
&self,
model: &Model,
inds: I
) -> Result<Vec<f64>>
[src]
&self,
model: &Model,
inds: I
) -> Result<Vec<f64>>
impl<A> ObjAttrGet<<A as ObjAttr>::Obj, i8> for A where
A: CharAttr + ObjAttr + AsCStr,
[src]
A: CharAttr + ObjAttr + AsCStr,
fn get(&self, model: &Model, idx: i32) -> Result<c_char>
[src]
fn get_batch<I: IntoIterator<Item = Result<i32>>>(
&self,
model: &Model,
inds: I
) -> Result<Vec<c_char>>
[src]
&self,
model: &Model,
inds: I
) -> Result<Vec<c_char>>
impl<A> ObjAttrGet<<A as ObjAttr>::Obj, i32> for A where
A: IntAttr + ObjAttr + AsCStr,
[src]
A: IntAttr + ObjAttr + AsCStr,
fn get(&self, model: &Model, idx: i32) -> Result<i32>
[src]
fn get_batch<I: IntoIterator<Item = Result<i32>>>(
&self,
model: &Model,
inds: I
) -> Result<Vec<i32>>
[src]
&self,
model: &Model,
inds: I
) -> Result<Vec<i32>>
impl<A> ObjAttrGet<<A as ObjAttr>::Obj, String> for A where
A: StrAttr + AsCStr + ObjAttr,
[src]
A: StrAttr + AsCStr + ObjAttr,
From the Gurobi manual regarding string attributes:
Note that all interface routines that return string-valued attributes are returning pointers into internal Gurobi data structures. The user should copy the contents of the pointer to a different data structure before the next call to a Gurobi library routine. The user should also be careful to never modify the data pointed to by the returned character pointer.