Jai Kishan Gupta

First Question
Conversationalist
  • Total activity 9
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 2

Comments

Recent activity by Jai Kishan Gupta Recent activity Votes
  • 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.

  • 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] ...

  • 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))...

  • 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...

  • 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...