Tutorial 01: counter-generator

In this first example, we will create simulation of two models: an event generator and a event counter. First, we need to create a new empty package in the user home directory. cd $HOME/examples vle-1.1 -P generator-counter create vle-1.1 -P generator-counter configure build The binary package is now installed into the VLE’s home ($VLE_HOME/pkgs-1.1 or $HOME/.vle/pkgs-1.1). Now, we need to add two DEVS models, the counter and the generator. Copy the file Simple.

Tutorial 02: Lotka-Volterra, observation and conditions

In this tutorial, we create a Lotka-Volterra system solved with Euler. The first part shows you how to develop a such model then we use the experimental conditions to assign value from the VPZ and use it directly from R. First, we develop the model vle -P lotka-volterra create Rename the lotka-volterra/src/Simple.cpp into SystemLotkaVolterra.cpp for example and edit the source code like this: #include <vle/value/Value.hpp> #include <vle/devs/Dynamics.hpp> namespace vd = vle::devs; namespace vv = vle::value; namespace examples { class SystemLotkaVolterra : public vd::Dynamics { double X, Y; double alpha, beta, gamma, delta; double step; public: SystemLotkaVolterra(const vd::DynamicsInit& init, const vd::InitEventList& events) : vd::Dynamics(init, events) { X = 1.


Fibonacci with discrete time models We used the gvle.discrete-time package to model the Fibonacci sequence into the discrete-time extension (package vle.discrete-time) Video comments: 0:00 : Create the package fibonacci and specify a dependency to the vle.discrete-time package. 0:18 : Create a new atomic model based on the discrete time formalism. By default, its name is NewCpp. 0:25 : Specify the equation F= F(-1) + F(-2) into the Compute section.