|
libhybrid
A library for discretized Hybrid Dynamical Systems
|
#include "libhybrid.h"Go to the source code of this file.
Functions | |
| hyb_errorcode | hyb_main_loop (hyb_opts *opts, hyb_float *y, hyb_float *xp, hyb_float tau, const hyb_float *x, const hyb_float *u, const hyb_float **p) |
| Hybrid system main loop. More... | |
| void | hyb_flow_map_wrapper (hyb_float *dx, hyb_float tau, const hyb_float *x, const hyb_float *u, const hyb_float **p, void *vopts) |
| Internal callback for discretization step. More... | |
Definition in file libhybrid.c.
| void hyb_flow_map_wrapper | ( | hyb_float * | dx, |
| hyb_float | tau, | ||
| const hyb_float * | x, | ||
| const hyb_float * | u, | ||
| const hyb_float ** | p, | ||
| void * | vopts | ||
| ) |
Internal callback for discretization step.
| dx | output of the callback |
| tau | hybrid time step, is probably different with respect to the evolution time |
| x | the current state, contains time and jump state |
| u | the current control |
| p | the parameter vector of vectors |
| vopts | a void pointer for user space, is used for passing by the options struct |
Definition at line 66 of file libhybrid.c.
| hyb_errorcode hyb_main_loop | ( | hyb_opts * | opts, |
| hyb_float * | y, | ||
| hyb_float * | xp, | ||
| hyb_float | tau, | ||
| const hyb_float * | x, | ||
| const hyb_float * | u, | ||
| const hyb_float ** | p | ||
| ) |
Hybrid system main loop.
The main loop of the hybrid system performs the following operations:
| opts | pointer to an option structure |
| y | vector that will contain the next output. It must be already allocated |
| xp | vector that will contain the next state (already integrated in case of flowing step). It must be already allocated |
| tau | integration engine time |
| x | current state |
| u | current input |
| p | parameter vector |
Definition at line 31 of file libhybrid.c.
1.8.11