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?
530 Views Asked by Peanutlex At
1
There are 1 best solutions below
Related Questions in MATRIX
- Initialize matrix
- Delete a column and a row in a square matrix in C
- multiply each columns of a matrix by a vector
- How can I extract the bounds of a bitmap in a canvas from the values in the transformation matrix?
- Find saddle points in Matlab
- Adding appending numpy arrays
- Python: Array subtract Matrix - TypeError: unsupported operand type(s) for -: 'int' and 'list'
- List of coordinates to matrix of distances
- Is there a way to make array entries complex variables in NumPy?
- Determining regression coefficients for data - MATLAB
- Turning matrix into list of integers as a spiral of given matrix
- Summing multiple columns to equal -1,0,1
- How do I get (LaTeX math) typeset matrix with borders in HTML output from *.Rmd?
- MATLAB Creating a symbolic function with matrix elements
- How to multiply 3 matrices using shared memory in Python?
Related Questions in DIFFERENTIAL-EQUATIONS
- Systems of Differential Equations with initial-value problems
- how to use Euler method for numerical integration of differential equation?
- Reconstructing a 2D shape from its projection in 1D
- Taylor Method ODE
- How to evaluate the constants SymPy gives with initial condition?
- Integral Differential equation
- R - Picard Method for General Polynomial
- Matlab Picard Method - Assigning existing symfun to a Vector
- Trouble getting odeINT to accept equations generated by a loop
- Make lsoda terminate once state variable reacjes a threshold value
- Convert 2nd order differential equation to 1st order
- Using scipy.integrate.ode to solve protoplanetary hydrostatic equilibria
- Optimization with an inherent differential equation
- Single calculation for objective function and constraints function in fmincon
- Variable input in ode 45, MATLAB
Related Questions in JMODELICA
- FMU Export of Python Code or Python Interface with FMI Standard for Use in EnergyPlus Co-Simulation
- How to introduce scaling of parameters to MSL CombiTimeTable?
- How to describe media along a continuous production line with different operations?
- Error when running fmu example in JModelica 2.4 User's Guide: could not find file
- c function is not correctly called in JModelica
- Running JModelica in PyCharm - running a .bat file before the PyCharm interpreter to setup the environment
- NullPointerException when compile_fmu used for simulation of Dymola *.mo file from library
- Cannot install JModelica on Ububtu
- Python: How to solve DAE with Jacobian efficiently?
- Problem setting an array to fmu parameter with JModelica - 'FMUException: The length of valueref and values are inconsistent.'
- How to automatically delete temporary folder after simulation using pyFMI?
- Feedback loop in OpenModelica
- How to implement nested if statements in Modelica?
- ImportError with pyfmi
- Removing annotations from a Modelica model
Related Questions in SUNDIALS
- How to deal with this Python sundials library error?
- How to perform adjoint sensitivity in Python (preferably through CVODE)
- Write a text file to save vectors and other variables in C program
- Python: How to solve DAE with Jacobian efficiently?
- Wrapping C function with void pointer as argument using Cython
- undefined symbols remain, but shared libraries compile and seem to function properly
- How to install scikits.odes on Python 3.X
- Build Sundials with MKL
- When calculating adjoint sensitivities in SUNDIALS/CVODES, how does one handle discontinuities in the forward solution?
- SimBiology simulation not working
- Compiling C++ in Rcpp with external C library
- Dropwizard Sundial Schedueled task with Hibernate object
- Failed to compile mex in Matlab 2014a
- Rare, seemingly random segmentation fault and read only memory error: Why? How do I fix?
- CMake undefined and duplicate symbols when building executable. Fortran77 C mix
Related Questions in ASSIMULO
- py2exe and assimulo - No module named algebraic
- How to deal with this Python sundials library error?
- Python: How to solve DAE with Jacobian efficiently?
- CVodeError while simulating with pyFMI
- How to combine an ODE system with a FEM system
- Sundials installed but not running in python with assimulo
- installation of assimulo and sundials - error
- Pathos KeyError with dill when using an instance method
- How to solve - FMUException: The slave failed to initialize
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 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.