Quadratic Objective with two Quadratic Constraints

조회 수: 2 (최근 30일)
Krishnendu K
Krishnendu K 2023년 11월 8일
댓글: Torsten 2023년 11월 9일
Hii,
My programming knowledge is limited. I would like to solve a quadratic objective function with two quadratic constraints. I read and understood the concepts and examples given in https://in.mathworks.com/help/optim/ug/linear-or-quadratic-problem-with-quadratic-constraints.html?s_tid=mwa_osa_a, but I am having difficulty in implementing this for my problem.
Matrices A, B and C be symmetric positive semi-definite matrices. How to find the subject to the constraints and ? The documentation deals with a single quadratic constraint only. But my problem has two quadratic constraints. How can I code the second constraint as per the documentation in the link above?
Thank You..
  댓글 수: 3
Krishnendu K
Krishnendu K 2023년 11월 9일
Is there any condition can I check whether the constrained region have an intersection?
I have generated the matrices A, B and C and attached the .mat files. Is there any possible way of optimisation?
Matt J
Matt J 2023년 11월 9일
편집: Matt J 2023년 11월 9일
Even if they have an intersection, I don't see how that solves the problem. Do you have an initial guess close enough to the global solution that disconnected solution regions will be avoided?

댓글을 달려면 로그인하십시오.

답변 (1개)

Torsten
Torsten 2023년 11월 8일
편집: Torsten 2023년 11월 8일
What about
function [y,yeq,grady,gradyeq] = quadconstr(x,B,C)
y = [];
yeq(1) = x.'*B*x - 1;
yeq(2) = x.'*C*x - 1;
if nargout > 2
grady = [];
gradyeq(:,1) = 2*B*x; % Assumes B is symmetric, otherwise (B+B.')*x
gradyeq(:,2) = 2*C*x; % Assumes C is symmetric, otherwise (C+C.')*x
end
end
  댓글 수: 10
Krishnendu K
Krishnendu K 2023년 11월 9일
What I meant is I tried to solve it by using eigen value decomposition. But the area of optimisation is entirely new to me. When I apply these constraints the problem cannot be solved by eigen value decomposition method and I have to rely entirely on convex optimisation which is new to me..
Torsten
Torsten 2023년 11월 9일
What I meant is I tried to solve it by using eigen value decomposition.
You formulated an optimization problem. Obviously, the problem is not well-posed because the objective function is not real-valued.
What is the underlying problem that you tried to solved via this optimization formulation ? (You again talk of "I tried to solve it", but you don't explain what "it" is).

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Quadratic Programming and Cone Programming에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by