how is it possible to introduce the lead value of the inputs of GA in matlab

1 visualización (últimos 30 días)
Dear All,
I want to solve a multi objective problem with Genetic algorithm tool box in matleb.
I have four inputs as below:
a=1:10
b=1:10
c=50:2.5:75
d=0.73:0.01:0.77
In GA toolbox I can only determin the lower and upper bond. How is it possible to introduce the lead values of each parameter, like 2.5 for c and 0.01 for d.
I would appreciate your response in advance

Respuesta aceptada

Walter Roberson
Walter Roberson el 19 de Oct. de 2021
I want to solve a multi objective problem with Genetic algorithm tool box in matleb.
Note that ga() can only be used for single objectives, but gamultiobj() can be used for multiple objectives.
How is it possible to introduce the lead values of each parameter, like 2.5 for c and 0.01 for d.
It is not possible.
There are few possible work-arounds:
  • specify the input position as an integer variable with lower bound 0 and upper bound 10. Then, inside the objective function, assign c = 50 + Variable * 2.5 . You could pass the initial value and step in using function parameterization.
  • Outside of the function, construct c=50:2.5:75 . Now specify the input position as an integer variable with lower bound 1 and upper bound length(c ) . Use function parameterization to pass c into the objective function. Then, inside the objective function, each place you need the value, index that passed-in c vector at the value of the input position.

Más respuestas (0)

Categorías

Más información sobre Genetic Algorithm en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by