# Eli Towle

Gurobi Staff
• Total activity 1011
• Last activity
• Member since
• Following 0 users
• Followed by 1 user
• Subscriptions 395

## Activity overview

Latest activity by Eli Towle
• Eli Towle commented,

It's valid syntax for the $$\texttt{if}$$ statement to be at the end of the generator expression. It is not valid syntax to place the $$\texttt{if}$$ statement before the $$\texttt{for}$$ loo...

• Eli Towle commented,

The problem occurs in this call to Model.addConstrs(): for g in n_generators:    for t in time_periods:        if t >= UT:           uptime[g,t] = m.addConstrs(sum(v[g,p] for p in range (t-UT+1, t+...

• Eli Towle commented,

It looks like the $$\texttt{PATH}$$ variable still does not include $$\texttt{/opt/gurobi951/linux64/bin}$$. What is the output of $$\texttt{echo \PATH}$$? How did you set the environment va...

• Eli Towle commented,

I generated an initial feasible solution from a reduced problem and I want to feed the MIP start of my larger instance with this solution. However, my constraint to penalize values below 60 is vio...

• Eli Towle commented,

It's okay to use a tuple as the dictionary key. The problem is that some of the dictionary values are tuples. These tuples are then multiplied by variables. Here is an example showing the source of...

• Eli Towle commented,

The problematic constraints are the ones that use $$\texttt{d}$$: mdl.addConstrs(y[j,k]<= quicksum(d[(i,k)]*x[(i,j)]for i in N) for j in lot for k in G)mdl.addConstrs(quicksum(d[(i,k)]*x[(i,j)] f...

• Eli Towle commented,

Can you share a mathematical formulation of this model? Additionally, it would be helpful to see a complete, self-contained code example that reproduces the results you currently see. Here are some...

• Eli Towle commented,

Starting with Gurobi 9.5, indexing an MVar like $$\texttt{x[j]}$$ should yield a Var object, not an MVar object. Which version of Gurobi are you using? You can check with import gurobipy as gppri...

• Eli Towle commented,