Trait grb::attribute::ObjAttrSet[][src]

pub trait ObjAttrSet<O, V> {
    fn set(&self, model: &Model, idx: i32, val: V) -> Result<()>;
fn set_batch<I: IntoIterator<Item = (Result<i32>, V)>>(
        &self,
        model: &Model,
        idx_val_pairs: I
    ) -> Result<()>; }
Expand description

A modifiable ModelObject attribute (eg Var or Constr)

Required methods

Set the value for this attribute

Set multiple values for this attribute at once

Implementors