Variable

Constructor

Variable(**kwargs)

Creates an optimization variable to be used inside models

Methods

Variable.set_bounds(self, \*[, lb, ub])

Changes bounds on a variable

Variable.set_init(self[, init])

Changes initial value of a variable

Variable.get_type(self)

Returns the type of variable

Variable.get_attributes(self)

Returns an ordered dictionary of main attributes

Inherited Methods

Variable.copy(self[, name])

Returns a copy of the Expression object

Variable.get_dual(self)

Returns the dual value

Variable.get_name(self)

Returns the name of the object

Variable.get_value(self)

Returns the value of the variable