I am trying to use the Assimulo package to solve a set of differential algebraic equations (DAEs). I am trying to use an algorithm similar to that shown here. However, there does not seem to be an option to pass in a sparse matrix. My Jacobian matrix is very large, approximately 3000 x 3000. Do you know if there is a way to solve my DAEs more computationally efficiently?
Python: How to solve DAE with Jacobian efficiently?
532 Views Asked by Peanutlex At
1
There are 1 best solutions below
Related Questions in MATRIX
- Setting diagonal of a matrix to zero
- CUDA matrix inversion
- Function to create matrix of zeros and ones, with a certain density of ones
- DirectX 9 With No SDK Installed - How To Translate a D3DMATRIX?
- Using the sympy module to compute the matrix multiplication involving symbols
- Rendering a visualisation of matrix using pygame
- I do not receive iOS push notifications from Element Matrix Notify
- Matrix reconstruction by SVD in tensorflow
- Why does the following code detect this matrix as a non-singular matrix?
- Bound for product of matrices
- iterating through raster bands to perform calculation
- How to make a heatmap and the matrix for it?
- MATLAB: Turn every element of complex matrix into another matrix
- Matrix calculated based on the previous value
- Matlab array of structure
Related Questions in DIFFERENTIAL-EQUATIONS
- Solve equation with Crank Nicolson and Newton iterative method in Matlab
- Getting updates from SDE solver in Julia
- Julia - Second-order ODE gives wrong results
- Stop ODE integration when a condition is satisfied?
- Newton's Method on MATLAB for Stationary Solutions for the Non-linear Klein-Gordon Equation
- Creating a conditional differential equation in Maple
- solve_ivp on a differential equation containing squared functions
- How to activate the adaptive solver in torchdiffeq?
- How to call imaginary number "i" in an equation in C++?
- Julia Forward Differentiation of vectors
- Ensure trivial solution is found to matrix equation
- Solving integrodifferential equation using dsolve in Matlab
- Confusing finite difference results with numpy and scipy sparse for simple ODE
- Python based finite element solver for 2D manifold embedded in 3 dimensional space
- Sympy: Extract the two functions solutions of a homogeneous second order linear ODE
Related Questions in JMODELICA
- How to convert Jmodelica-Optimica code to openmodelica-Optimica code
- Compilation Error with JModelica on macOS: Missing libblas_OPENMP.a File
- Example MSL Fluid and Media and how to introduce small concentrations of some material?
- Example MSL Fluid and Media and annotations removed gives initialisation problems?
- java.lang.NoClassDefFoundError with JModelica2.14
- How to upgrade MSL to 4.0 in JModelica?
- How to describe media along a continuous production line with different operations?
- How to introduce scaling of parameters to MSL CombiTimeTable?
- Feedback loop in OpenModelica
- How JModelica(v2.14) enable directional derivatives?
- Compile modelica to FMU in (open-source and in batch)
- how can I fixed the Jmodelica compiling error?
- Problem setting an array to fmu parameter with JModelica - 'FMUException: The length of valueref and values are inconsistent.'
- Python: How to solve DAE with Jacobian efficiently?
- Cannot run fmu.get_fmu_state() in pyfmi library
Related Questions in SUNDIALS
- Potential Bug(s) with SuperLU configuration on Windows
- How to deal with this Python sundials library error?
- Sundials for larger system of chemical plant
- Removing sundials package in Ubuntu 22.04
- Making the CMAKE path available to another software
- Solving ODEs in parallel in Julia: variable answers, hangs after several executions
- Parallel simd MUCH slower than serial simd in Julia
- When calculating adjoint sensitivities in SUNDIALS/CVODES, how does one handle discontinuities in the forward solution?
- CMake undefined and duplicate symbols when building executable. Fortran77 C mix
- How to perform adjoint sensitivity in Python (preferably through CVODE)
- Write a text file to save vectors and other variables in C program
- undefined symbols remain, but shared libraries compile and seem to function properly
- Wrapping C function with void pointer as argument using Cython
- Python: How to solve DAE with Jacobian efficiently?
- Pathos KeyError with dill when using an instance method
Related Questions in ASSIMULO
- How to deal with this Python sundials library error?
- Python: How to solve DAE with Jacobian efficiently?
- Pathos KeyError with dill when using an instance method
- How to solve - FMUException: The slave failed to initialize
- CVodeError while simulating with pyFMI
- installation of assimulo and sundials - error
- Sundials installed but not running in python with assimulo
- py2exe and assimulo - No module named algebraic
- How to combine an ODE system with a FEM system
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In my experience with sparse ODE systems (more precisely with systems of semi-discretized PDEs), using an iterative linear solver greatly enhances numerical efficiency. As far as I know, Assimulo doesn't allow to provide a jacobian sparsity pattern, but changing the linear solver is another way to tackle this.
You would do something like:
I'm not sure if this also applies for DAE systems, but I think it's worth giving this a try.