Carlos Martin
- Total activity 14
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 4
Activity overview
Latest activity by Carlos Martin-
Carlos Martin commented,
Silke Horn Under the C API, I get a segfault whenever I call GRBnewmodel inside an OMP parallel for loop, e.g. #pragma omp parallel for // works when this line alone is commentedfor (long batch = 0...
-
Carlos Martin commented,
Eli Towle Thanks, that seems to work. Is there a way to change the default for OutputFlag globally (e.g. through some system-wide environment variable or setting)?
-
Carlos Martin commented,
I see there's a Feature Requests subforum, should I post this there? I suppose the ideal interface might look something like def max_min(batch): model = gurobipy.Model() v = model.addMVar(bat...
-
Carlos Martin created a post,
Messages being printed to standard output when library is loaded
AnsweredCurrently, Using license file /Users/[username]/gurobi.licAcademic license - for non-commercial use only is printed to standard output every time I run a Python script that uses Gurobi (e.g. when e...
-
Carlos Martin commented,
Robert Luce Here is an example: Solving batches of two-player zero-sum normal-form games. I get times like gurobi 0.37076228499999986cvxopt 0.009740684000000055gurobi 0.39596498599999985cvxopt 0.00...
-
Carlos Martin commented,
More generally, are there plans to add a completely vectorized interface like that of cvxopt.solvers.lp (ideally with the addition of a batch dimension)? This would be extremely useful. Currently c...
-
Carlos Martin commented,
@... That yields the following error: Traceback (most recent call last):...model.addMConstrs(u[:, :, i], x, '>', v)File "model.pxi", line 3414, in gurobipy.Model.addMConstrsTypeError: object of typ...
-
Carlos Martin created a post,
Vectorizing addition of constraints
I'm using the Python API. Is there a vectorized way to add the following constraints? model.addConstrs(( v <= u[:, :, i] @ x for i in range(u.shape[2]))) where v and x are MVars, e.g. v.shape...
-
Carlos Martin commented,
Model creation overhead is exactly what I'm concerned about, since I'm trying to solve a very large batch of small-to-medium-sized LPs. For example, I'm wondering about the overhead of calling GRBn...
-
Carlos Martin created a post,
Solving LPs sequentially versus one large LP with non-interacting variables/constraints
AnsweredSuppose I'm solving ~1000 linear programs with ~10 variables and ~100 constraints each. Is it faster to solve these sequentially (creating a new model each time) or to create a single large linear ...