Problem With GA toolbox?

5 visualizzazioni (ultimi 30 giorni)
Mesanlibor
Mesanlibor il 27 Feb 2013
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]..

Risposte (2)

Alan Weiss
Alan Weiss il 28 Feb 2013
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 Commenti
Mesanlibor
Mesanlibor il 5 Mar 2013
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 il 5 Mar 2013
You can try using the ideas in this technical support answer.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation

Accedi per commentare.


Juan Camilo Medina
Juan Camilo Medina il 2 Mar 2013
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.

Community Treasure Hunt

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

Start Hunting!

Translated by