David Torres Sanchez
-
Gurobi Staff
- Total activity 562
- Last activity
- Member since
- Following 1 user
- Followed by 0 users
- Votes 76
- Subscriptions 206
Comments
Recent activity by David Torres Sanchez-
Hi Xiao, Can you try using the latest version (v11.0.1) and setting the parameter FuncNonlinear=1 (instead of the ones you are setting) Cheers, David
-
Hi Liu, You can parse and plot the log using gurobi-logtools. import gurobi_logtools as gltresults = glt.parse("yourlog.log")glt.plot(results.progress("nodelog")) See the full example in the gurobi...
-
Hi Moisés, I don't think this is possible from Python.This can be from C, methods discussed in Advanced simplex routines Cheers, David
-
Hi Peilin, In that case you can use user cuts (instead of lazy cuts), however these will not remain for the next solve.One way to keep these would be to save them in a separate container and add th...
-
Hi Peilin, You can add some lazy cuts to achieve this.See our TSP example: modeling-examples/traveling_salesman/tsp.ipynb at master · Gurobi/modeling-examples or, tsp.py Cheers, David
-
Hi Zhao, You can use the matrix API: Model.addMVar() Example: matrix1.py Cheers, David
-
Hi Yifeng, Do you mean something like this: In Python: import gurobipy as gpeducation = list(range(5))gender = list(range(5))idx = list(range(5))with gp.Model() as m: x = m.addVars(education, ge...
-
See a similar post in the Julia discourse. In your case, you can use the GRBaddgenconstrLog which is documented here: GRBaddgenconstrLog - C API. Cheers, David
-
Thanks for reporting this. We will track this in an internal ticket. Cheers, David
-
You can try and model your logic using binary variables. What are you trying to model with the tuple? This is not clear, as \(\texttt{q_gtw}\) is a continuous variable, you need to add an expressio...