dynamic_2d_lanchester_solve
Solve Lanchester combat models analytically to determine winner and survivors, and numerically simulate force trajectories over time.
Instructions
Simulate a Lanchester combat model x' = f(x,y), y' = g(x,y) with analytic time-to-annihilation.
Args: eq_x, eq_y: Math expressions (classic default is x'=-αy, y'=-βx). alpha, beta, gamma, epsilon, mu, delta: Greek parameter values. x0, y0: initial force sizes. t0, t_fin, h: simulation grid.
Returns: Dict with the analytic winner/survivors, state equation and the numerical trajectories.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| mu | No | ||
| t0 | No | ||
| x0 | No | ||
| y0 | No | ||
| beta | No | ||
| eq_x | No | -α * y | |
| eq_y | No | -β * x | |
| alpha | No | ||
| delta | No | ||
| gamma | No | ||
| t_fin | No | ||
| epsilon | No |