A variable relief valve is inserted in a hydraulic piping for connecting a
first pump/motor to a second pump/motor. The variable relief valve is
controlled such that when shifting the transmission from forward to
reverse or vice versa, a relief set pressure of the variable relief valve
is reduced in response to switching of a forward/reverse shifting clutch
mechanism and after completion of the switching of the forward/reverse
shifting clutch mechanism, the relief set value is increased.