Skip to main content

Kmeans as mixed integer programming

Answered

Comments

2 comments

  • 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

Please sign in to leave a comment.