The bounds of the variables
AnsweredI have a model where I define three variables as follows :
alpha[a] = model.addVar(lb=GRB.INFINITY, name="alpha%d" % a)
beta[i, j] = model.addVar(lb=GRB.INFINITY, ub=0, name="beta%d,%d," % (i, j))
lamda = model.addVar(lb=0, ub=GRB.INFINITY, name="lamda")
after creating the model in the model.lp file, the variables define as follows:
alpha free
infinity <= beta <= 0
but I can't find lamda which is supposed to be ???
lamda >= 0
where the objective function is to maximize the sum of these three variables ??
Thanks
0

The default variable bound are \([0,\infty]\). If a variable is continuous and has default bounds (as is the case for \(\lambda\)), you will not find it in the bounds section of a Gurobi LP file.
Best regards,
Jaromił0
Please sign in to leave a comment.
Comments
1 comment