Antonio22
Civil/Environmental
- Apr 22, 2019
- 18
Hi everyone! I'm new to using matlab and I have a problem!!
My objective is to find a function in 4 variables and solve an optimization problem (minimizing the function). So i used the command "Sym" to define the variables, but for calculate this function, i need to calculate the eigenvalues problem of a matrix. To evaluate this problem the program becomes too slow.
I have seen that the problem is in defining the variables as "sym", as it is a very slow command. How else could I define them? Unfortunately "double", not being numerical variables, does not work.
Thank you very much in advance for your reply!
My objective is to find a function in 4 variables and solve an optimization problem (minimizing the function). So i used the command "Sym" to define the variables, but for calculate this function, i need to calculate the eigenvalues problem of a matrix. To evaluate this problem the program becomes too slow.
I have seen that the problem is in defining the variables as "sym", as it is a very slow command. How else could I define them? Unfortunately "double", not being numerical variables, does not work.
Thank you very much in advance for your reply!