Eli Towle
Gurobi Staff- Total activity 1323
- Last activity
- Member since
- Following 0 users
- Followed by 4 users
- Votes 3
- Subscriptions 515
Activity overview
Latest activity by Eli Towle-
Eli Towle commented,
Your code is very close! You first create a Gurobi environment named \(\texttt{env}\) using your WLS license credentials, then associate that environment to a Model object called \(\texttt{model}\)...
-
Eli Towle commented,
Yes, you did not explicitly name the quadratic constraint. If you want to name the quadratic constraint and get rid of the warning, you can pass the \(\texttt{name}\) keyword argument to Model.addC...
-
Eli Towle commented,
Do you have a minimal reproducible example? I would expect the constraint to be included in the model file with the default name (e.g., \(\texttt{qc0}\)). Note you can always give the constraint a ...
-
Eli Towle commented,
Your constraint is m1.addConstr((sum(b[s + 1] - b[s]) * (eta[s] ** 2) for s in var_new) <= nu[0]) Notice that the \(\texttt{for s in var_new}\) is outside of the \(\texttt{sum()}\) function, creat...
-
Eli Towle commented,
Sorry for the delayed reply. I was out of office the last few weeks. The Background: Mathematical Model section of the Maximum Sharpe Ratio OptiMod documentation describes the original Sharpe ratio...
-
Eli Towle commented,
Yes, this is still supported. Can you please make sure the Gurobi version specified in your POST request matches the version of Gurobi you're using to run your code? I could reproduce the error you...
-
Eli Towle commented,
It's not currently possible to warm-start the barrier method. To warm-start simplex, you can: Set the PStart attribute for every variable and the DStart attribute for every constraint, or Set the ...
-
Eli Towle commented,
Without knowing what the error message is, I would guess the variable bounds might be the problem. By default, variables have a lower bound of \(0\). Did you remove this default lower bound from th...
-
Eli Towle commented,
A model can include multiple absolute value constraints. Can you please post a minimal reproducible example that shows the issue?
-
Eli Towle commented,
Can you please post the details of the OpenSolver error message you see?