Linked Questions
48 questions linked to/from Performance tuning in Mathematica?
2
votes
1answer
270 views
How to illustrate the optimal solution with kinked constraint?
I have a simple optimization problem with a linear, continuous constraint or a kinked constraint. The optimal solution is either a tangent point with f*<T or at the kink with f*=T. The standard ...
2
votes
2answers
135 views
Functional realisation of do-loop
I'm currently optimising my code and I'm using a lot of loops, so I was wondering if there is a smarter or faster way to do things like:
...
1
vote
1answer
86 views
Optimal way to evaluate a function over many points
This piggy-backs on my previous question: Parameter space search routine is too fast?
I am looking for a fast way to evaluate a symbolic list over many points. So lets say I have a list of symbolic ...
1
vote
1answer
159 views
Desktop vs. Cloud option, home plan vs. basic plan: syntax differences
I do not understand why the following simple expression is accepted using a browser (cloud option), but is not accepted using the installed software (desktop option) with the plan basic of Wolfram ...
54
votes
5answers
5k views
How can I implement dynamic programming for a function with more than one argument?
Dynamic programming is a technique for avoiding the repeated computation of the same values in a recursive program. Each value computed is immediately stored. If the value is needed again, it is not ...
1
vote
2answers
97 views
Systematically Optimizing Code for Better Runtime
Can someone please tell me how can I learn to systematically optimize my Mathematica code to be faster? I have seen a blog about the same but have no idea where to ...
2
votes
0answers
27 views
Is it possible to profile Wolfram Language code without Workbench? [duplicate]
Are there any tools built into the latest version of Mathematica that would allow a user to run a profiler against packages? I have read this question, but there have been two releases since that ...
2
votes
1answer
102 views
`Solve` Performance Tuning
I'm facing a Problem in Mathematica, where I have to solve a large number of equations generated by an AppendTo.
...
5
votes
7answers
442 views
How to use AppendTo in a While loop? [closed]
I am trying to code a while loop that uses AppendTo to append the loop variable to an empty list.
...
5
votes
2answers
297 views
Mathematica taking forever to compute
I want to simulate the fresnel diffraction through circular aperture.But mathematica is taking forever to calculate.Here is my code.
...
6
votes
2answers
176 views
Achieve performance that is competitive with numpy [duplicate]
What are the best practices to ameliorate time performance of Mathematica?
As a practical example how we can decrease timing below?
...
3
votes
1answer
150 views
Access to the temporary solution in NDSolve with StepMonitor
I want to step-monitor at each time step of a spatio-temporal NDSolve (using the finite element method) the maximum bending of the function sampled over the curent mesh. For this I first need access ...
15
votes
2answers
1k views
Finite difference method not converging to correct steady state or conserving area?
I am working with the following PDE, which is an advection-diffusion type equation. It describes the movement of a fluid-fluid interface inside an annulus of inner radius $R_1$ and outer $R_2$ under ...
2
votes
3answers
339 views
Random Geometric Graphs, but fast
I am optimising the random geometric graph generation ideas in this post. I need to generate a large number of random geometric graphs with probabilistic connectivity (soft random geometric graphs), ...
563
votes
19answers
142k views
Where can I find examples of good Mathematica programming practice?
I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...