Problem With GA toolbox?

조회 수: 5 (최근 30일)
Mesanlibor
Mesanlibor 2013년 2월 27일
i have a problem.. i have a function to minimize..
say F(x)=x(1)^4.5+x(2)/x(3)+x(4)*100+x(5)
the values of the decision variables lie between 1 and 24. And they should only be from this set [1 2 4 8 16 18 22 24]..

답변 (2개)

Alan Weiss
Alan Weiss 2013년 2월 28일
If you have MATLAB R2011b or later, and Global Optimization Toolbox, you can solve this kind of problem using the GA function. See this section of the documentation for information on integer optimization, and this example to see how to convert integer constraints to constraints involving choosing from a particular set of values.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 2
Mesanlibor
Mesanlibor 2013년 3월 5일
greeting.. thank you for the answer. but i am using matlab R2008b.. can u giveme any other idea on how to proceed wit this
Alan Weiss
Alan Weiss 2013년 3월 5일
You can try using the ideas in this technical support answer.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation

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


Juan Camilo Medina
Juan Camilo Medina 2013년 3월 2일
You don't need to solve this numerically. The arguments that minimize the equation are the values that minimize each term in the equation, which are the lowers value in your set (except the second term):
argmin x(1)^4.5=1
argmin x(2)/x(3)=1/24 (since x(3) is divining then you want the largest value)
argmin x(4)*100=1
argmin x(5)=1
therefore:
x_optimum= [1 1 24 1 1], f_optimum=(1+1/24+1+1)=73/24.

카테고리

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