Documentation of simdopiv

Global Index (all files) (short | long) | Local contents | Local Index (files in subdir) (short | long)

Function Synopsis

[sys, x0] = simdopiv(t, x, u, flag);

Help text

 SIMulation Modell of DOPpelIntegrator, s-function, Vectorized

 This function implements the modell of the double integrator.

 Syntax:  [sys, x0] = simdopiv(t, x, u, flag)

 Input parameters:
    t         - given time point
    x         - current state vector
                1 column for every individual
    u         - input vector
                1 column for every individual
    flag      - flags

 Output parameters:
    sys       - Vector containing the new state derivatives
                1 column for every individual
    x0        - initial value            

 See also: objdopi, simdopi1, simlinq2

Cross-Reference Information

This function is called by

Listing of function simdopiv



% Author:     Hartmut Pohlheim
% History:    17.05.95     file created

function [sys, x0] = simdopiv(t, x, u, flag);

% Linear Systems Description

   if abs(flag) == 1
   	sys(1,:) = u(1,:);       % Derivatives
   	sys(2,:) = x(1,:);       % Derivatives
   elseif abs(flag) == 0
   	sys=[2,0,0,1,0,0]; x0 = [0; -1];
   end


% End of function
GEATbx: Main page  Tutorial  Algorithms  M-functions  Parameter/Options  Example functions  www.geatbx.com 

This document is part of version 3.7 of the GEATbx: Genetic and Evolutionary Algorithm Toolbox for use with Matlab - www.geatbx.com.
The Genetic and Evolutionary Algorithm Toolbox is not public domain.
© 1994-2005 Hartmut Pohlheim, All Rights Reserved, (support@geatbx.com).