Optimal valves regulation for calibration of pipe networks models