Documentation of simlinq2

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

Function Synopsis

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

Help text

 Modell of Linear Quadratic Problem, s-function

 This function implements the modell of the Linear Quadratic Problem.

 Syntax:  [sys, x0] = simlinq2(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: objlinq2, objlinq, simdopiv, simdopi1

Cross-Reference Information

This function is called by

Listing of function simlinq2



% Author:     Hartmut Pohlheim
% History:    23.03.95     file created

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

% Linear Systems Description

   if abs(flag) == 1
   	sys(1,:) = u(1,:) + x(1,:);       % Derivatives
   elseif abs(flag) == 0
   	sys=[1,0,0,1,0,0]; x0 = [100];
   else
   	sys = [];		% Real time update (ignored).
   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).