60 x=
boundp(v(ii++),fmin,fmax,fpen,s);
68 double fmin,
double fmax,
double s)
87 u=
boundp(
x(ii++),fmin,fmax,fpen);
93 double diff=fmax-
fmin;
97 const double l4=
log(4.0);
98 double pen=.000001/diff;
99 fpen-=pen*(
log(ss+1.e-40)+
log((1.0-ss)+1.e-40)+l4);
112 int& ii = (
int&) _ii;
117 for (
int i=min;i<=
max;i++)
132 int& ii = (
int&) _ii;
137 for (
int i=min;i<=
max;i++)
151 int& ii = (
int&) _ii;
156 for (
int i=min;i<=
max;i++)
173 int& ii = (
int&) _ii;
178 for (
int i=min;i<=
max;i++)
194 int& ii = (
int&) _ii;
199 for (
int i=min;i<=
max;i++)
203 x(i)=
boundp(v(ii++)/s,fmin,fmax,fpen);
219 int& ii = (
int&) _ii;
224 for (
int i=min;i<=
max;i++)
238 int& ii = (
int&) _ii;
243 for (
int i=min;i<=
max;i++)
261 for (
int i=min;i<=
max;i++)
279 for (
int i=min;i<=
max;i++)
297 for (
int i=min;i<=
max;i++)
309 const int& _ii,
int n)
313 for (
int i=mmin;i<=mmax;i++)
324 const int& _ii,
int n)
326 int& ii = (
int&) _ii;
334 "index out of range in set_value_patial(const dvar_vector&, ... "
337 for (
int i=min;i<=
max;i++)
349 const int& _ii,
int n,
const double fmin,
const double fmax,
352 int& ii = (
int&) _ii;
360 "index out of range in set_value_patial(const dvar_vector&, ... "
363 for (
int i=min;i<=
max;i++)
380 for (
int i=min;i<=
max;i++)
static int straight_through_flag
Base class for dvariable.
Vector of double precision numbers.
void fmin(double f, const independent_variables &x, const dvector &g, const int &n, const dvector &w, const dvector &h, const fmm_control &fmc)
prnstream & endl(prnstream &)
double boundpin(double x, double fmin, double fmax, double s)
Scale model variable over [-1,1]; constant objects.
Array of integers(int) with indexes from index_min to indexmax.
void set_value_partial(const dvar_vector &x, const dvar_vector &v, const int &ii, int n)
Description not yet available.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.
Description not yet available.
void set_value(const dvar_matrix &x, const dvar_vector &v, const int &_ii, double s)
Description not yet available.
void set_value_inv(const dvar_matrix &x, const dvector &v, const int &ii, double s)
Description not yet available.
Class definition of matrix with derivitive information .
dvariable boundp(const prevariable &x, double fmin, double fmax, const prevariable &_fpen, double s)
Compute penalty for exceeding bounds on parameter; variable ojbects.
dvector value(const df1_one_vector &v)
Fundamental data type for reverse mode automatic differentiation.
d3_array log(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.