필터 지우기
필터 지우기

How many Minimum Non Linear equations required to solve N variables in optimization problem?

조회 수: 2 (최근 30일)
I am using Genetic Algorithm to optimize the decision variables x(1),x(2),....x(N).
And I have less than N equations obtained from constraint function, With only one Objective.
Do we exactly need N non-linear equations? Or is it ok if we have less than N equations?

채택된 답변

Birdman
Birdman 2018년 2월 7일
Imagine that N=3;
A=[1 1 4;2 4 5];b=[2;1];
fun=@(x) x(1).^2+2*x(2)-x(3).^3;
y=ga(fun,3,A,b)
As you can see, there is one objective function, with two constraints and three variables. It gives a result. Hope this helps.
  댓글 수: 3
Birdman
Birdman 2018년 2월 7일
Yes, it can but it will just take more time than usual. For instance for N=32, when I solve a problem for ga, the elapsed time is
>> Elapsed time is 73.111 seconds.

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

추가 답변 (1개)

Torsten
Torsten 2018년 2월 7일
Any number of constraint functions is ok.
Best wishes
Torsten.

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by