What should be done to accelerate computations?

1 visualización (últimos 30 días)
Vladimir Kovalev
Vladimir Kovalev el 7 de Oct. de 2017
Editada: Cedric el 7 de Oct. de 2017
I try to optimize my model containing continous and binary variables. It takes a lot of time. What should be done to accelerate computations? To increase main storage? Something else in hardware?
  1 comentario
Cedric
Cedric el 7 de Oct. de 2017
Editada: Cedric el 7 de Oct. de 2017
In the line of what John mentions, with that little detail in your question, it is impossible to say anything.
I you wanted to start by profiling the code, to see where the bottleneck(s) is(are), you could type the following in the command window:
profile viewer
then type the name of the script that you want to profile in the text field Run this code and click on Start profiling . You'll get a report and you can trace time following the nesting of scripts and functions.

Iniciar sesión para comentar.

Respuesta aceptada

John D'Errico
John D'Errico el 7 de Oct. de 2017
- Get a faster computer.
- Get more memory.
- Solve smaller problems.
- Write better code.
- Learn to use better techniques, with more efficient algorithms.
- Get the parallel processing toolbox. Learn to use it well.
- Get a large cup of coffee, and work on another problem while you wait for it to finish.
All of the above MIGHT be the answer to your question, and maybe a few more.
I cannot read your mind, nor can I see into the depths of your computer to know what you have done. Only you can know what you did.
So start with the profile tools in MATLAB. They will help you to identify where the bottlenecks lie. Learn ways to reduce the processing time for each bottleneck. Learn different algorithms.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by