xmuzd 发表于 2015-4-16 15:47 
thank you!现在在尝试遗传算法来做,我是做在模型的假设下,交易策略的优化,比较简单,只有一个参数,以 ...
As I said before, if your function only has one variable, it doesn't make sense to use a genetic heuristic. Your heuristic can't guarantee an optimal solution. If one can find an optimal solution using the simple complete search with about the same running time, what is the usage of your algorithm? The way that you conduct research is not proper.
If this is your assignment, it is fine. If you are writing a paper, don't even work on this type of trivial questions.