28 double dfx=1.0/
square(2-x/eps);
47 double dfx=.02*(x-
eps);
57 double posfun(
const double &
x,
const double eps,
const double& _pen)
59 double& pen=(
double&)_pen;
68 return eps/(2.0-x/
eps);
77 double posfun2(
const double &
x,
const double eps,
const double& _pen)
79 double& pen=(
double&)_pen;
91 return eps/(1.0+tmp+tmp2+tmp3);
double dfposfun(const double &x, const double eps)
Adjoint code for posfun; possibly not used.
d3_array cube(const d3_array &m)
Description not yet available.
double dfposfun1(const double &x, const double eps)
Adjoint code for posfun; possibly not used.
dvar_vector posfun(const dvar_vector &x, double eps, const prevariable &pen)
Description not yet available.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
dvariable posfun2(const dvariable &x, const double eps, const prevariable &pen)
Retuns a positive function of the argument and sets a penalty for .
double square(const double value)
Return square of value; constant object.