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

Kmeans as mixed integer programming

回答済み

コメント

2件のコメント

  • Riley Clement
    • Gurobi Staff

    Hi Retsebile,

    for category in range(clusters):
      for data in range(n): # <- I think you're missing this line
            model.addQConstr(

    - Riley

    0
  • Retsebile Maphalla
    • Gurobi-versary
    • First Comment
    • First Question

    Hi Riley, thanks for the response. I added the constraint but it was going to take days to find an optimal solution at the rate the solver was moving at

    0

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