Use of Simulation for the Prevention of Environmental Problems