Extrema with constraints on points and/or velocities