![]() |
Prev | Next |
random_out =
mixed_object.optimize_random(
options, fixed_vec, random_lower, random_upper, random_in
)
mixed_object
.
cppad_mixed
base class.
const std::string& options
This is the ipopt_options
for optimizing the random effects
with the following qualifications:
name=evaluation_method
and
value
is either ipopt_random
or ipopt_solve
.
The ipopt_random
choice uses
CppAD::mixed::ipopt_random
for optimizing random effects.
This special purpose class
is expected to eventually be the faster choice.
This is the default choice; i.e., ipopt_random
will be used
if this option is not present.
The ipopt_solve
choice uses
CppAD::ipopt::solve
for optimizing random effects.
Currently this is sometimes faster and so this choice is still included
(but may be removed in the future).
const CppAD::vector<double>& fixed_vec
It specifies the value of the
fixed effects
vector @(@
\theta
@)@.
const CppAD::vector<double>& random_lower
It must have size equal to
n_random
and
specifies the lower limits for the optimization of the
random effects
vector @(@
u
@)@.
The value minus infinity can be used to specify no lower limit.
const CppAD::vector<double>& random_upper
It must have size equal to
n_random
and
specifies the upper limits for the optimization of the random effect.
The value plus infinity can be used to specify no lower limit.
const CppAD::vector<double>& random_in
It must have size equal to
n_random
and
specifies the initial value used for the optimization of the
random effects
vector @(@
u
@)@.
It must hold that
random_lower[i] <= random_in[i] <= random_upper[i]
for each valid index
i
.
CppAD::vector<double> random_out
It is the final value (obtained by optimization) of the
random effects
vector @(@
u
@)@.