i have tried many solver but getting errors somewhere. now im going to try gekko for my problem.
Please Lt me know that gekko can this kind of problem, where M in python function take the variable q. and all variables and parameters are in form of vector or matrix.
thanks you
q should be function of time, and M, c sai and other matrix depends on q and u.
Here is a similar problem with an inverted pendulum
There is also a related Stack Overflow question: how to use arrays in gekko optimizer for python Gekko can solve path planning problems that are subject to actuator constraints and equations of motion. One of the challenging mathematical features of this problem is how to smoothly pose the path constraints so that the robot does not pause at each intermediate path point. A potential method is to create a path cubic spline that helps to define the desired location for each time point. Here is one problem with matrices:
Here is another test script that demonstrates dot products and the trace function with Numpy: