When looking at these problems, we can formalise them as such:

  • The solution space,
  • A cost function, where
    • We define a global maximum,
    • Likewise a local maximum,