Skip to main content
2 of 3
edited title
user366312
  • 17.5k
  • 73
  • 264
  • 506

Objective function of a Genetic Algorithm

This is my first effort about AI/ML.

I have the following problem given by my teacher,

Design a simple genetic algorithm in MATLAB, with binary-coded chromosomes, in order to solve pattern finding problem in 16-bit strings.

The objective function is given by the following formula:

F(x) = NoS("010") + 2NoS("0110") + 3NoS("01110") + 4NoS("011110") + 5NoS("0111110") + 6NoS("01111110") + 7NoS("011111110") + 6NoS("0111111110") + 5NoS("01111111110") + 4NoS("011111111110") + 3NoS("0111111111110") + 2NoS("01111111111110") + NoS("011111111111110")

I couldn't understand the formula.

What does it mean by Nos?

What did he mean by 2Nos, 3Nos,...?

user366312
  • 17.5k
  • 73
  • 264
  • 506