メインコンテンツへスキップ

second order cone contraint

回答済み

コメント

1件のコメント

  • Riley Clement
    • Gurobi Staff Gurobi Staff

    Hi Azadeh,

    Can you try substituting your expression for rhs directly into the soc constraint, i.e.

     m.addConstr(lhs[t]*lhs[t] >= gp.quicksum((1-X[tau+1])**2  for tau in range(1,t))+1)

    and then remove the rhs variable and the quadratic equality constraint it appears in (a quadratic equality constraint is non-convex).  I expect this will resolve the issue.

    - Riley

    0

サインインしてコメントを残してください。