Hello everyone! I am studying MSc Mechatronics and currently working on my scientific project. It is regarding making the Julia code of 1D Heat equation faster. With this message, I have also attached the Julia source code. I had some ideas which I can implement but unsure of that. I have listed them below. I request everyone to enlighten me whether I am going in the right direction. Your ideas and suggestions are also most welcomed.
(1) While defining the system matrix and matrix A, maybe I can use “Staticarrays.jl” instead of “spdiagm”. Is it possible? If yes, how can I implement it?
(2) Searching for other optimizers instead of “Ipopt”.
(3) Can I use “Import Ipopt.optimizer” instead of using the whole library in the code? (Using whole library may occupy a lot more space and can also make the program slower to run).
Thank you for your time and I hope to receive suggestions and ideas!