The image above shows the kinematic optimization problem statement that I'm trying to implement. The initial and final state values are directly proportional to design variables.
And the following are the boundary constraints for the final joint positions:
0 <= xB <= 0.6*lo + d
0 <= yB <= 0.9*b
I believe this solves the problem without the need for integration, only relying on the geometric constraints of the system. Setting the constants d, b, and L0 to the appropriate values should let you find your particular solution.
Which gives