Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Need to reduce the time taken for simulation

Need to reduce the time taken for simulation

Hi

We are trying to decrease the time taken for simulation by increasing the step size, but we are not able to get any change in the simulation time. We tried playing around with other various parameters of the simulate command, but it is not helping.

We need to reduce the time taken in order to use it for optimization. Is there any other way to speed up the simulation??

Thank you

John

Re: Need to reduce the time taken for simulation

If you have a stiff system, the step size is ignored (DASSL will take as small steps as is necessary to solve the equations with the given error tolerance). So you could try increasing the tolerance.

Or you could try a fixed step-size solver like euler or rungekutta.

There are 0 guests and 0 other users also viewing this topic
You are here: