how to get best 10 fitness values

2 Ansichten (letzte 30 Tage)
SARAH LONER
SARAH LONER am 25 Jan. 2020
Beantwortet: Star Strider am 25 Jan. 2020
hello sir,
i got 100*1 values from fitness formula. now i need best of 10 values
how do i get that

Akzeptierte Antwort

Star Strider
Star Strider am 25 Jan. 2020
If you have R2017b or later, mink would be easiest. Otherwise, use sort and take the first 10. (This assumes that ‘fitness’ is defined as the minimum value, usually the objective. If it is the maximum, use maxk or sort with the 'descend' option.)

Weitere Antworten (0)

Kategorien

Mehr zu Descriptive Statistics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by