Establish a convex optimization model for calculation

Below is a small question
Example
In a two-dimensional plane, a certain mass point starts from the origin (0, 0) at a fixed speed v,
and moves at (50, 50) as the target point, and the shortest path is the optimization index.
Establish a convex optimization model for calculation.

This is not a modeling site. Nor is it a homework site.