[MATLAB] Modeling QCQP(Quadratically Constrained Quadratic Problems)
回答済みI'm trying to solve QCQP and trying to generate a model using MATLAB.
From 'MATLAB Reference Manual,' it says that for quadratic constraints, one can use 'quadcon' function which can describe x'*Qc*x + q'*x <= beta.
ex)
Here's my question:
Gurobi uses 'model.A' for defining linear constraints.
model.A = sparse([-]);
Would Gurobi recognize this as the same linear constraint if I define the linear constraint as
-
正式なコメント
This post is more than two 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 Yooseung,
I don't have the working knowledge to answer this, maybe someone else will, but it seems like something you could easily test?
You can write out an LP file with gurobi_write() and inspect it.
- Riley
1 -
Hi Yooseung,
If I understand your post correctly, your concern is about defining a linear constraint via the quadcon struct. It should be no problem to define a linear constraint via the quadcon struct, i.e., set the \(Q\) matrix = 0. If you see some suspicious or wrong behavior, please let us know.
As Riley suggested, you can always write out an LP file and analyze what is happening.
Best regards,
Jaromił1
投稿コメントは受け付けていません。
コメント
3件のコメント