I am deriving the set of equations and constraints for an optimisation proble. I use symbolic math and matlab live script to ease the troubleshooting of errors.
The problem is such that all the functions (cost and constraint) could be represented by polynomials, but I failed to find a way in Matlab to visualise them as simple polynomials, and rounding the numbers (I still have pi as "pi").
For example, below, you can see a part of one constraint I would like to simplify to a simple poynomial.
This is the best I can achieve, using "collect()" with respect to the vector of the optimisation variables.
Best Answer