V priya
 Total activity 9
 Last activity
 Member since
 Following 0 users
 Followed by 0 users
 Votes 0
 Subscriptions 3
Activity overview
Latest activity by V priya
V priya commented,
Thank you for the response.I uncommented the following also : mdl.addConstrs( U_a1[i,j] >= U_lower_bar_a1[i,j] for i in range(0,n) for j in range(0,n)) But I am getting an infeasible model. Could...

V priya created a post,
Infeasibility due to modelling the constraints
Answeredimport numpy as npimport cvxpy as cpimport gurobipy as gpfrom gurobipy import GRB n = 5 U_lower_bar_a1 = np.zeros((n, n)) U_upper_bar_a1 = np.zeros((n, n)) s = 0.03 U_lower_bar_a1[0][0] = ...

V priya created a post,
Semidefinite programming
Awaiting user inputI have an SDP problem (essentially it is an LP problem with two semidefinite matrices). Since Gurobi cannot solve it, please suggest an effective way to solve it. I saw the link SDP plugin of the ...

V priya commented,
Hi Thank you for the reply. I follow your help and see that: print( rho[0:n].shape) as (3,) : means there are 3 columns (this is expected)andprint( np.tile(rho[0:n],n).shape) as (3,) : this is s...

V priya commented,
Regarding the first point, isn't it better to vectorize a constraint than use a for loop in terms of time ?

V priya created a post,
Doubt in LP Constraints
AnsweredI have the following code: import numpy as npimport gurobipy as gpfrom gurobipy import GRBn = 3 m = 2 alpha = 0.9 gamma = [0] * ngamma[0] = 1gamma = np.array(gamma)Id = np.identity(n)P_a1 = n...