luca-scr / GA

An R package for optimization using genetic algorithms
http://luca-scr.github.io/GA/
91 stars 29 forks source link

decrease the accuracy of genome of real-valued GA #30

Open maxrodkin opened 5 years ago

maxrodkin commented 5 years ago

Hello! i have calculating investing portfolio with GA. And have one problem - GA has give weights with too high accuracy. For example: > ga_results$optimised_porfolio sol_weights [1,] "TQOB@SU26210RMFS3" "0.625122874975204" [2,] "TQOB@SU26215RMFS2" "0.375124052166939" [3,] "TQBR@AFKS" "0.00508862733840942" [4,] "TQBR@DSKY" "0.000841811299324036" How to decrease the accuracy of genome of real-valued GA by increasing the mutation step? I need get such as: > ga_results$optimised_porfolio sol_weights [1,] "TQOB@SU26210RMFS3" "0.62" [2,] "TQOB@SU26215RMFS2" "0.36" [3,] "TQBR@AFKS" "0.01" [4,] "TQBR@DSKY" "0.01"