Download e - Klaus Schittkowski

Transcript
The constants n, r, and mr are defined in the database of EASY-FITM odelDesign . In
addition to variables and functions, a user may insert further real or integer constants in the
function input file according to the syntax rules of PCOMP.
Example: To illustrate the usage of symbolic function input, we consider an example. We
have two explicit model functions
h1 (p, t) = D exp(−k1 t) ,
h2 (p, t) =
k1 D
(exp(−k2 t) − exp(−k1 t)) .
k1 − k2
The corresponding input file is the following one:
C-------------------------------------------------------C
C
Problem: LKIN_X
C
C-------------------------------------------------------C
*
VARIABLE
k1, k2, D, t
C
*
FUNCTION h1
h1 = D*EXP(-k1*t)
C
*
C
*
C
FUNCTION h2
h2 = k1*D/(k1 - k2)*(EXP(-k2*t) - EXP(-k1*t))
END
2