optimizations with unfixed number of hydraulic