x1 = Variable ( 'x1', lb = 0 ) x2 = Variable ( 'x2', lb = 0 ) x3 = Variable ( 'x3', lb = 0 ) my_vars = # A constraint is constructed from an expression of variables and # a lower and/or upper bound (lb and ub). # from optlang.scipy_interface import Model, Variable, Constraint, Objective from optlang.glpk_interface import Model, Variable, Constraint, Objective # from optlang.gurobi_interface import Model, Variable, Constraint, Objective # from optlang.cplex_interface import Model, Variable, Constraint, Objective # All the (symbolic) variables are declared, with a name and optionally a lower # and/or upper bound.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |