Microrobots with their promising applications are attracting a lot of attention currently. A microrobot with a triangular mechanism was previously proposed by scientists to overcome the motion limitations in a low-Reynolds number flow; however, the control of this swimmer for performing desired manoeuvres has not been studied yet. Here, we have proposed some strategies for controlling its position. Considering the constraints on arm lengths, we proposed an optimal controller based on quadratic programming. The simulation results demonstrate that the proposed optimal controller can steer the microrobot along the desired trajectory as well as minimize fluctuations of the actuators length.