I have a set of variables X, Y, ..., Z
. My job is to design a function that takes this set of variables and yields an integer. I have a fitness function to test this against.
My first stab at the problem is to assume that I can model f
to be a linear function:
f(X, Y, ..., Z) -> aX + bY ... cZ
My first idea was to use either PSO (Particle Swarm Optimization) or Genetic algorithms to solve f
for a, b, .., c
and I am sure they'd sure yield good results.
On the other hand, I feel like maybe that kind of evolutionary algorithms aren't really needed. First of all, I can think of a couple of good "starting points" for a,b, .., c
. Being f
a linear function, shouldn't it be easier to just try out a couple of points and then do something like a linear regression to them? And after the linear regression, trying out a couple more points, this time closer to what looks like a good "spot", making again a linear regression on them?
What are the downsides of it? Anyone with experience in these kind of problems? The biggest one I can think of is that maybe what I consider good starting values for a,b, .., c
may be a "local optima", and having some kind of evolutionary algorithm would yield me a global one.
f
is supposed to be a approximation function for the Minimax algorithm of a Chess-like game, if that matters.
Thanks