ADMB Documentation
-a65f1c97
Main Page
Function Reference
Classes
Source Code
Related Pages
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
nh99
model5.cpp
Go to the documentation of this file.
1
/*
2
* $Id$
3
*
4
* Author: David Fournier
5
* Copyright (c) 2008-2012 Regents of the University of California
6
*/
7
#include <
admodel.h
>
8
9
void
param_init_bounded_dev_vector::set_value
(
const
dvar_vector
&
x
,
10
const
int
& ii,
const
dvariable
& _pen)
11
{
12
dvariable
& pen= (
dvariable
&) _pen;
13
if
(
initial_params::mc_phase
)
14
{
15
set_value_mc
(*
this
,x,ii,
minb
,
maxb
);
16
}
17
else
18
{
19
::set_value
(*
this
,x,ii,
minb
,
maxb
,pen);
20
}
21
dvariable
s=
mean
(*
this
);
22
pen+=10000.0*s*s;
23
if
(!
initial_params::mc_phase
)
24
{
25
(*this)-=s;
26
}
27
}
x
#define x
dvar_vector
ADMB variable vector.
Definition:
fvar.hpp:2172
mean
double mean(const dvector &vec)
Returns computed mean of vec.
Definition:
cranfill.cpp:43
param_init_bounded_dev_vector::set_value
virtual void set_value(const dvar_vector &x, const int &ii, const dvariable &pen)
Definition:
model5.cpp:9
admodel.h
Description not yet available.
param_init_bounded_vector::maxb
double maxb
Definition:
admodel.h:1067
set_value_mc
void set_value_mc(const dvar_vector &x, const dvar_vector &v, const int &ii, const double fmin, const double fmax)
Definition:
mod_mc3.cpp:152
param_init_bounded_vector::minb
double minb
Definition:
admodel.h:1066
initial_params::mc_phase
static int mc_phase
Definition:
admodel.h:846
dvariable
Fundamental data type for reverse mode automatic differentiation.
Definition:
fvar.hpp:1518
Generated on Wed Sep 7 2022 00:01:29 for ADMB Documentation by
1.8.5