how can i generate this chromosome?
Mostra commenti meno recenti
how can i generate this chromosome? I tried to generate randomly this chromosome [2 2 3 1 2 3 1 1 3]. this chromosome represents that I have 3 jobs and each job has 3 tasks. I need this chromosome to use genetic algorithm.
Risposta accettata
Più risposte (1)
sejo
il 9 Set 2014
hy, try this:
chrom=randi([1,3],1,9)
2 Commenti
ghazwan alsoufi
il 9 Set 2014
isuru senevirathne
il 24 Mag 2018
chrom=randi([1,10],1,9)
you can not make to repeat each number in three times , becuse it is randomly generate
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!