The Computational Beauty of Nature
Source code

hencon

control the Henon system with the OGY control law

hencon -help
  or
hencon [-points integer]  [-on1  integer]  [-off  integer]
       [-on2  integer]  [-skip  integer]  [-seed  integer]
       [-plimit double] [-A double]  [-B  double]  [-gauss
       double]

Controls the Hénon system with the OGY control law for arbitrary choices of the system parameters. The control law is analytically calculated based on the system parameters. The user can select times in which control is turned on and off so that time-to-control and transients can be observed. Gaussian noise can be injected into the system.

Control the Henon system, x(t+1) = A - x(t)^2 + B * x(t - 1), with the OGY control law for arbitrary choices of A and B. The control law is analytically calculated based on the system parameters. The user can select times in which control is turned on and off so that time-to-control and transients can be observed. Gaussian noise can also be injected into the system. The control timing options are constrained to obey (0 <= on1 <= off <= on2 <= points).

Bugs

Few sanity checks are performed to make sure that any of the options make sense.

Options

-pointsThe length of the time series.300
-on1Where to turn control on.50
-offWhere to turn control off.100
-on2Where to turn control on again.200
-skipAmount to skip initially.100
-seedRandom seed.0
-plimitLargest allowed size for p.0.2
-AValue of the A parameter.1.29
-BValue of the B parameter.0.3
-gaussMagnitude of Gaussian noise.0.0

hencon.c on GitHub