Sagnik Basumallik
- Total activity 37
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 4
- Subscriptions 12
Posts
Recent activity by Sagnik Basumallik-
Error when using Sparse matrix with Gurobi variables
AnsweredHi, I have a dense matrix H which I have transformed into a sparse matrix. from scipy import sparsesH = sparse.csr_matrix(H) I have a D matrix which is an identity matrix with Gurobi variables in t...
-
Creating model takes too much time when big matrices are used
AnsweredHi All I have a problem that minimizes the following: minimize trace(A^TBA) where the matrices A and B have the following dimension A = (3038 x 2000) B = (3038 x 3038) I write the objective functio...
-
Duality of MILP
AnsweredI am trying to understand if Gurobi derives lower bounds on the optimal solution value of a MILP problem using dual functions when Branch-and-Cut is used. If yes, is there a way to access the dual...
-
Tolerances for Floating Point numbers under Integer Relaxation
AnsweredI am trying to relax integer variables such that the resulting problem is linear. To do this, I am using a iterative weighted approach. The intermediate solutions I obtain (say after 6 iterations) ...
-
How does Gurobi handle binary variables in Mixed Integer (Binary) Linear Program?
I have a Mixed Integer (Binary) Linear Program with the following variables. x = m.addVars(nodes, area,vtype=GRB.BINARY, name="x") w = m.addVars(arcs,area, vtype=GRB.BINARY, name="w") z = m.addVars...
-
How do I obtain Pareto optimal solutions in Gurobi?
AnsweredCurrently, I am solving a MOOP in Gurobi. The first way is the linearly blended method. m.setObjective(obj1+obj2+obj3) Next, I have re-write n-1 objectives using the ε-constraint method, m.addConst...
-
How to get runtime for multi-objective formulation using Hierarchical methods?
Hi, I have written a multi-objective optimization using Hierarchical formulation. m.setObjectiveN(obj1, index = 1, priority = 2, abstol=20.0)m.setObjectiveN(obj2, index = 2, priority = 1, abstol=0....
-
Constraint has no bool value (are you trying "lb <= expr <= ub"?)
OngoingI get the following error for a constraint. Note this was working in Gurobi 8 but not in Gurobi 9. m.addConstrs(0 <= f1[i,j,h] <= 200*z[i,j] for i,j in arcs for h in area) The full error is as fol...
-
Semi definite programming and direct support for trace of matrix?
AnsweredI have two questions. 1. Does Gurobi support semi definite programming? 2. Is there direct support to include trace of matrix in the objective function?
-
Creating diagonal matrix from binary variables
AnsweredI have defined a binary variable: z = m.addVars(arcs, vtype=GRB.BINARY,name="z") where arcs are (i,j). z_{i,j} = 1 means there exists a line between i and j.I want to create a matrix such that z_{i...