how to use R to solve the quadratic program
AnsweredI am wondering how to use R to solve the following problem with quadratic objective:
Min: 【∑_j {w_j ∗ x_j }− z】^2, j = 1,2,...,n-1
s.t. 0≤x_j≤n-j, x_j ∈N
where n, z and w_j are known real number, x are the variables.
I only find the simple MIP example (with linear objective) in R document, could you please provide some related materials or help me code such problem via Gurobi language?
0
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
Hi Moqin,
this example should be interesting to you.
Best regards,
Jonasz0
Post is closed for comments.
Comments
2 comments