Numeric genetic algorithm Part I. Theory, algorithm and simulated experiments