Jai Kishan Gupta
- Total activity 9
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 2
Activity overview
Latest activity by Jai Kishan Gupta-
Jai Kishan Gupta created a post,
Gurobi on Azure
AnsweredI have gurobi academic licence I want to run my python code where I am using gurobi optimization on Azure function. How can I do that like how I can setup gurobi on azure so that I can use same cod...
-
Jai Kishan Gupta commented,
The problem is solve pending_constraints = model.getConstrs() I have using getConstrs() for getting addQConstr I have used model.getQConstrs() now it's showing Thank Your for the help sir.
-
Jai Kishan Gupta commented,
It's not get added even after doing model.update() see the code portfolio_risk = gp.QuadExpr()for i in range(len(variable)): for j in range(len(variable)): portfolio_risk += variable[i] ...
-
Jai Kishan Gupta commented,
I have implemented the solution now the error is not coming but a new problem arrives here is the code portfolio_risk = gp.QuadExpr()for i in range(len(variable)): for j in range(len(variable))...
-
Jai Kishan Gupta commented,
I am creating a constraint the contraint is risk should be less that 5.56% to caluclate the risk we have formula risk = np.sqrt(np.dot(np.dot(variable_array.T,covariance_matrix_array),variable_arra...
-
Jai Kishan Gupta commented,
my constraint is result = np.sqrt(np.dot(np.dot(variable_array.T,covariance_matrix_array),variable_array)) where result should be less than 5.56%. Now to remove the sqrt from left hand side if I sq...
-
Jai Kishan Gupta created a post,
Using sqrt in constraint.
Answeredresult = np.sqrt(np.dot(np.dot(variable_array.T,covariance_matrix_array),variable_array)) here is the formula to calcuate the risk which should not be more than 5%. Now can you please help me how I...