I want to know whether cvxpy can only implement this form of quadratic programming (just one formulation):
objective = cp.Minimize(cp.sum_squares(A @ x - b))
This is the link in cvxpy to implement Mixed-integer quadratic program: https://www.cvxpy.org/examples/basic/mixed_integer_quadratic_program.html
If I want to solve an objective function of the sum form:
Whether I can use a nested for loop to implement it? But I don't know how to do and I can not find the API to implement it. I used to implement Linear programming using Python library PULP, and it can use for loop to define the objective function and the constraints. Can i do this in cvxpy library?
Is my expression clear? If you need more information, just contact me. Thank you!