
Simon Bowly
-
Gurobi Staff
- Total activity 147
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 74
Comments
Recent activity by Simon Bowly-
Hi Muhummad, What you have here is a standard form matrix constraint, and the ideal way to model this is to use MVars and the matrix-friendly API: A = np.array([a1, a2, a3, a4]).transpose() # 5 ro...
-
Hi Jiří, Looking at the IIS you've posted, only the following variables are free (i.e. not constrained as non-negative): x_in[0] free x_in[3] free x_in[4] free x_in[6] free x_in[7] free In the LP ...
-
Hi Jesse, Can you please include a complete, minimal working example that reproduces the error, including how each of the variables and constants are created?
-
Hi Bryan, We had an issue with our license servers earlier today. If you have just installed your license, the license file may have been corrupted. Can you please try re-running the `grbgetkey` co...
-
Hi Evren, Can you clarify what you mean by "Gurobi returns that this solution is not better than the incumbent solution", when (if I'm reading your message correctly) Gurobi has no incumbent soluti...
-
You should be able to obtain this from the Slack attribute of the relevant capacity constraints. For inequality constraints, Slack reports the difference between the left- and right-hand sides for ...
-
Hi José, "v.index" will give you the index of the variable in the model. This is different from your indices i and j, as it is an internal Gurobi variable counter. I believe what you want is the fo...
-
Hi Abhishek, The Model.getAttr function expects a list or dictionary of gurobipy modelling objects as its second object, you cannot pass a single variable object. The following will return a list o...
-
Hi Afsoon, Can you please give a minimal, complete, working example here? I am not sure what xi is referring to and it's not clear what your expected result is.
-
Hi Lukas, You could write the solution values from the tupledict into a numpy array like so: arr = np.zeros((M, N))for i in range(M): for j in range(N): arr[i,j] = x[i,j].X But you may fi...