Would matlab be faster than Mathematica for this?

  • Context: MATLAB 
  • Thread starter Thread starter jimmy1
  • Start date Start date
  • Tags Tags
    Mathematica Matlab
Click For Summary
SUMMARY

The discussion centers on the performance comparison between Mathematica and Matlab for solving optimization problems involving complex non-linear functions, specifically an n-dimensional multivariate normal probability density function (pdf). The user reports significant computation delays and kernel crashes in Mathematica when attempting to define complicated multivariate pdfs. While there is uncertainty regarding the inherent speed of Mathematica versus Matlab, the consensus suggests that the complexity of the function may be the primary factor affecting performance, rather than the software itself.

PREREQUISITES
  • Understanding of multivariate normal distributions
  • Familiarity with optimization algorithms
  • Basic knowledge of Mathematica and Matlab environments
  • Awareness of computational resource requirements (RAM, processor capabilities)
NEXT STEPS
  • Research optimization techniques in Matlab for multivariate functions
  • Explore Mathematica's capabilities for handling complex functions
  • Investigate performance tuning options for both Matlab and Mathematica
  • Learn about the impact of computational resources on software performance
USEFUL FOR

Data scientists, mathematicians, and engineers involved in optimization tasks, particularly those working with complex multivariate functions in either Matlab or Mathematica.

jimmy1
Messages
60
Reaction score
0
I have an optimization problem which I cannot seem to solve in Mathematica as the computation time takes too long, and I'm wondering whether things would improve if I performed the same task on a program such as Matlab?

The task is to find the maximum of a non-linear function (the function is an n dimensional multivariate normal pdf, with n >10, and the elements of the covariance matrix are also nonlinear functions).
Now the problem is, even when I try to define this function in mathematica (using the MultinormalDistribution[...] function), the mathematica kernel seems to crash! I just can't seem to define any complicated mulinormal pdfs in mathematica. The computation time takes forever! After hours of waiting still no results produced!

So my question is, is this because mathematica is just a slow program or is my function too complicated for any program? Is it worth purchasing Matlab to do this instead? Will it be any faster?
 
Physics news on Phys.org
jimmy1 said:
So my question is, is this because mathematica is just a slow program or is my function too complicated for any program? Is it worth purchasing Matlab to do this instead? Will it be any faster?
This cannot be concluded unless we know what computer you are using (that is, your RAM, processor, OS, etc.) I haven't heard that Mathematica is slow compared to Matlab, so there are chances that the complexity of your program will make it run slow in Matlab too.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 11 ·
Replies
11
Views
17K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
7K