Dr. Mark Humphrys

School of Computing. Dublin City University.

Online coding site: Ancient Brain

coders   JavaScript worlds

Search:

Free AI exercises


Maximising a function

Consider the relationship between AI search and the problem of maximising a function.
The AI program constructs a "solution" x.
x may be multi-dimensional (e.g. an array of 10,000 numbers)
We can test the "fitness" of x which is f(x).
Find the x value that gives maximum fitness f(x).


  

Does the function have an equation?


Equation

If we have an equation for the function and it is differentiable:
  

No equation

The interesting case is where no equation known / not differentiable (but can still judge fitness of any given x). General approach:




Fitness function should not be chaotic

The idea of Maximising a function from exemplars is that "nearby" Input should generate "nearby" Output.

But some functions defeat this idea. With "chaotic" functions, a small change in input leads to massive changes in output. These functions are hard or sometimes impossible to learn from exemplars.




Non-chaotic functions

We do not expect in general to be able to maximise a chaotic (or discontinuous) function from exemplars.
The global maximum must be surrounded by some continuous zone of uplands, otherwise how can we find it.
It cannot be a single, isolated point or else the odds of finding that precise x go to zero.


ancientbrain.com      w2mind.org      humphrysfamilytree.com

On the Internet since 1987.      New 250 G VPS server.

Note: Links on this site to user-generated content like Wikipedia are highlighted in red as possibly unreliable. My view is that such links are highly useful but flawed.