This is a four-variable model (in the Amari formalism) of bistable Spike-Wave seizure dynamics and background activity (fixed point). The published code is the deterministic version of the model in the related publication.
This model can be used to investigate seizure abatement using stimulation.
Taylor PN, Wang Y, Goodfellow M, Dauwels J, Moeller F, Stephani U, Baier G (2014) A computational study of stimulus driven epileptic seizure abatement. PLoS One 9:e114316 [PubMed]