Genetic algorithm - changing only few arguments - errors
Mostra commenti meno recenti
I have to run the genetic algorithm by changing only C1,C2,C7 input arguments of the following function DL_Main_DPDPSCM
The remaining arguments are loaded through the file
data = load ('dpdpscm_data.mat');
function [ rho ] = DL_Main_DPDPSCM(x,C1,C2,C3,C4,C5,C6,C7,capae,capai,capaf,rti,rtp )
C1 = x(1);
C2 = x(2);
C7 = x(3);
I have written the fitness function as
fit = @(x) DL_Main_DPDPSCM(x);
[y,fval] = ga(fit,3);
It is showing errors in the user supplied fitness function.
where did i made the mistake and how to correct it
1 Commento
John D'Errico
il 28 Gen 2018
Please don't use the answers as a thread, so adding an answer for every comment made. I've moved your answer into a comment for you.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Genetic Algorithm in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!