File Exchange

Hybrid Equations Toolbox v2.04

version 2.04 (6.14 MB) by

Updated

The Hybrid Equation (HyEQ) Toolbox is implemented in MATLAB/Simulink for the simulation of hybrid dynamical systems. This toolbox is capable of simulating individual and interconnected hybrid systems with inputs. Examples of systems that can be simulated include a bouncing ball on a moving platform, fireflies synchronizing their flashing, and more. The Simulink implementation includes four basic blocks that define the dynamics of a hybrid system. These include a flow map, flow set, jump map, and jump set. The flows and jumps of the system are computed by the integrator system which is comprised of blocks that compute the continuous dynamics of the hybrid system, trigger jumps, update the state of the system and simulation time at jumps, and stop the simulation. Also includes a “lite simulator” which allows for faster simulation without using Simulink.

minsoo kim

minsoo kim (view profile)

I tried to install it (by install.m) but matlab always shows "out of memory".

Pablo Nanez

Pablo Nanez (view profile)

Hi @Tadashi, great question! yes, it is possible. It would be possible to craft such system in both the lite and the Simulink interfaces, but I think is more straightforward to do it in simulink. In the mean time, you can modify the example: Hybrid Equations Toolboox>>CPS examples>>Continuous Plant Example, and modify it so that the input "u" of the hybrid system "plant" is e. We will implement a more detailed example in the next release of the simulator. Thanks for the suggestion!

It is possible to simulate hybrid systems with measurement noise? That is,
a hybrid system with data (C,f,D,g) given by

x' = f(x+e), x+e ∈ C,
x⁺ = g(x+e), x+e ∈ D,

where e: dom e → Rⁿ is a measurement noise?

If so, could an example be included in the documentation?
Thanks! :)

Pablo Nanez

Pablo Nanez (view profile)

A new version of the simulator is available!
The main new features are:
1) Compatibility issues with matlab 2014-2017a are now solved
2) Instructions file updated
3) New examples and html files
4) Now is possible to solve DAE equations as a flow maps
5) Now flow maps and jump maps can access the hybrid time domain, e.g., f(x,t,j)

Deejay Stander

Pablo Nanez

Pablo Nanez (view profile)

A new version of the simulator is available!

The main new features of this new version are:

1) New zero events code in the lite HyEQ simulator
2) Instructions file updated
3) New help html files
4) Smaller installation file
5) Cyber Physical Systems CPS blocks in the simulink library (interconnected systems)
6) CPS examples
7) Problems in installation for 2014b are now solved
8) Now is possible to select which ode solver the lite HyEQsolver is going to use
9) New plot functions for pre and post 2014b plot behaviour

Pablo Ñañez

Pablo Ñañez (view profile)

The main changes from 2.0 to 2.01 are:
1) Added two new plotting functions plotHarcColor and plotHarcColor3D
2) All functions have now the standard head (H1) help line (which is required to search functions such as "lookfor", e.g., >> lookfor HyEQ, or >> lookfor hybrid)
3) Functions plotC and plotD were removed (none of examples uses those functions)
4) New help environment for all functions were created (with examples inclued), e.g.,
>> help HyEQ_Toolbox_V201
>> help HyEQsolver
>> help plotflows
>> help plotHarc
>> help plotHarcColor
>> help plotHarcColor3D
>> help plotHybridArc
>> help plotjumps
>> helpwin HyEQ_Toolbox_V2_01
5) Some of the postprocessig files in the examples (simulink) were edited to include the new plotting functions.

what's new from version 2.00 to 2.01?

Gerardo Flores-Colunga

Pablo Ñañez

Pablo Ñañez (view profile)

This blog contains guidelines, hints, and examples for the use (and misuse) of the Hybrid Equations (HyEQ) Toolbox

http://hybridsimulator.wordpress.com/

Pedro Casau

X.Yang

X.Yang (view profile)

Very useful. Nice!

Booshnam

Sean