Modeling of materials flow in Supply chain with Genetic Algorithm