Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

sym in matlab

Status
Not open for further replies.

Antonio22

Civil/Environmental
Apr 22, 2019
18
IT
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!
 
Replies continue below

Recommended for you

I need a symbolic solution ( a symbolic function)in order to optimize symbolic parameters!!

My problem is that the fitness fuction is very complicated to derive, and it comes out of many operations with unknown variables!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top