Thanks that's big help. I found out about the so called Genetic Algorithm in my research, but i wasn't aware of such generalization. I'll look about it.
But i was expecting a more formal model, like a Markowitz-style optimization or some application of stochastic control.