Solving differential equation with stanify builder? #93
Replies: 1 comment 2 replies
-
Usually I don't bother computing equilibrium, though I do typically initialize things locally in equilibrium or along a steady-state growth path. This is mainly of interest for experimentation from a known baseline in modest-sized models. Anything calibrated to data is unlikely to be in equilibrium at the start. Also, equilibrium is usually only interesting for a subsystem - in the inventory model, you'd like to see the orders/WIP/inventory in equilibrium, but if you add a cost function, the NPV is a pure accumulation of a nonnegative quantity, so it can't be in equilibrium (except trivially at 0 throughput). There's no general guarantee of a unique or stable equilibrium, if one even exists. Usually in a complex setting the easiest thing to do is simply pick one or more starting points and run the model for a long time to see what happens, but that may not work. You can also set up a payoff representing the degree of disequilibrium and minimize that, or iteratively linearize and take eigenvectors. Anything else takes some symbolic or structural analysis of the model. The pred/prey system is a good example - trivial equilibrium with zero populations, and an unstable equilibrium in the middle of the limit cycle orbit. The 0 equilibrium is not really interesting. The unstable point is interesting dynamically, but it's unlikely to exist in a real dataset because noise will always excite the system away from that point. What you'd really like to know is whether some policy can make that point stable, for example. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Finding equilibrium is needed as we wish to analyze the effect starting from stable (although I wonder what value it might have if real life is far from stability). We usually solve this by hand from chains of equation by assuming every stock's _dydt = 0.
From the file, the following function returns flow (
_dydt
of each stock) given parameter valueminimum_order_processing_time, time_step, inventory_adjustment_time, process_noise_scale
. Could we inverse this function and solve for differential equation solution (i.e. value of 7 stocks)?How do you usually compute equilibrium @tomfid?
Could stanify builder supply a equation that express stock value at equilibrium as a function of parameter? @Dashadower
To be clear,
Beta Was this translation helpful? Give feedback.
All reactions