November 13th, 2007, 9:38 pm
Hi. I'm a user of genetic algorithms, but by no means an expert. My question is not directly related to finance, but I have found so many knowledgeable people here, I figured it was worth a shot to run this by you.I have a GA to solve the following problem: I want to travel a certain finite distance, D, in a finite discrete number of steps, N; so, my path is a vector (d_1,d_2,...,d_N), with d_1 + d_2 + ... + d_N = D and d_i >= 0 for all i = 1,...,N. I have a cost function, C, and I'm seeking the minimum cost path. The cost function can be nonlinear and nonstationary, but it is separable in the sense that C(d_1,d_2,...,d_N) = C_1(d_1) + C_2(d_2) + ... + C_N(d_N), and C_i(0) = 0 for all i. Let's assume for now that I have programmed the GA correctly. Suppose I change the problem in one respect only, increasing the number of possible time steps to M > N; the cost function remains the same at the first N steps (and I have definitions of the remaining time step cost function pieces, C_{N+1},...,C_M). Any path for the N-step problem, (d_1,d_2,...,d_N) can be expanded to the M-step problem as (d_1,d_2,...,d_N,0,...,0), with the same original cost. It follows that the minimum cost for the M-step problem is no greater than the minimum cost for the N-step problem. But my GA doesn't always produce a better solution; in fact, as M grows larger, the frequency of M-step minimum cost solutions with higher cost than the N-step minimum cost solution increases. This doesn't shock me, because I'm searching a larger space, and I haven't changed any of the GA parameters yet -- same number of chromosomes, mutation rate, etc. My open-ended question is, what are the most effective ways to address this issue? For example, I could just toy with the basic GA parameters, such as number of chromosomes, mutation, crossover, etc. I could also do something like the following: precompute solutions for a lower number of steps, and use them as parent chromosomes for the higher number of steps (of course, this slows me down a bit). Anyway, I'd appreciate any guidelines you can offer. Thanks! -- TMK -- 212-460-5430 home 917-656-5351 cell