Skip to content Skip to sidebar Skip to footer
Showing posts with the label Simulation

How To Set Variable Value At X[3]=6 (not Initial Condition) In Python Gekko?

I can set an initial condition y(0)=5 in Gekko with y = m.Var(5) but how do I set a value that is n… Read more How To Set Variable Value At X[3]=6 (not Initial Condition) In Python Gekko?

Recording Data In A Long Running Python Simulation

I am running a simulation from which I need to record some small numpy arrays every cycle. My curre… Read more Recording Data In A Long Running Python Simulation

With Multibodyplant, Why Do I Get `solvequadraticforthesmallestpositiveroot(): Condition 'delta > 0' Failed`?

(This is from a Drake Slack conversation.) I'm playing with an 'exploding IIWA' demo to… Read more With Multibodyplant, Why Do I Get `solvequadraticforthesmallestpositiveroot(): Condition 'delta > 0' Failed`?

Why Is My Python 3 Implementation Much Faster Than The One I Wrote In C++?

I know that C++ should be much faster than Python 3 because it is a compiled language as opposed to… Read more Why Is My Python 3 Implementation Much Faster Than The One I Wrote In C++?

Python: Geometric Brownian Motion Simulation

A basic simulation of GBM doesn't seem to work. What am I doing wrong? The following code alway… Read more Python: Geometric Brownian Motion Simulation