Use the cvx convex optimization method to solve this simple trajectory optimization problem in the figure.

屏幕截图 2021-06-01 224623

This is an English language forum.

Do you have a clearly defined (in English) optimization problem which is convex? If not, this is not the right forum for you.

Read the following before proceeding.