Problem with Constrained Optimization with nonlinear constraints

조회 수: 1 (최근 30일)
Hello,
I am trying to do the following constrained optimization in matlab using the fmincon and nonlinear constraint.
max μ'*x
subject to A*x ≤ b
x'*Σ*x ≤ s
μ'*x + inv(F(x)(0.05))*sqrt(x'*Σ*x) ≥ −β
-1 ≤ x ≤ 1
The x is a (3x1) matrix. The problem is that the fmincon cannot find any feasible solution that is satisfying the constraints. Is it because the x is a vector and not a scalar?
Any reply would be appreciated!
Thank you in advance, Porfyria

채택된 답변

Alan Weiss
Alan Weiss 2013년 1월 11일
fmincon handles vector arguments such as x. This section of the documentation gives suggestions for dealing with the case when fmincon cannot find a feasible point.
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 2
Porfyria
Porfyria 2013년 1월 11일
Hello,
Thank you for your reply. I started with linprog but the solution it gives doesn't satisfy the linear constraints. Meaning: x:(3x1)
A: ones(1,3)
b = 1
A*x ≤ b
lb = [-1; -1; -1]
ub = [1; 1; 1]
x = [-0.9993; -0.9993; -0.9993]
Am I doing something wrong?
Thank you, Porfyria
Alan Weiss
Alan Weiss 2013년 1월 11일
I'm sorry, I do not understand what you mean. For the values of A and b and x that you give,
A*x = -2.9979 b.
And the bounds lb ≤ x ≤ ub are satisfied. So what is the problem?
Alan Weiss
MATLAB mathematical toolbox documentation

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by