Prev Next

@(@\newcommand{\R}[1]{ {\rm #1} } \newcommand{\B}[1]{ {\bf #1} } \newcommand{\W}[1]{ \; #1 \; }@)@This is cppad_mixed--20220519 documentation: Here is a link to its current documentation .
User Defined Fixed Effects Constraint Function

Syntax
mixed_object
a1_double
Virtual Function
fixed_vec
vec
     Default
Example

Syntax
vec = mixed_object.fix_constraint(fixed_vec)

mixed_object
We use mixed_object to denote an object of a class that is derived from the cppad_mixed base class.

a1_double
see a1_double .

Virtual Function
The following virtual function may be implemented in the derived class:
     virtual CppAD::vector<a1_double> fix_constraint(
          const CppAD::vector<a1_double>& 
fixed_vec
     )

fixed_vec
This argument has prototype
     const CppAD::vector<a1_double>& 
fixed_vec
It contains a value for the fixed effects vector.

vec
This result has prototype
     CppAD::vector<
a1_doublevec
It is the value of the constraint function @(@ c( \theta) @)@

Default
The base class definition (default) for fix_constraint returns an empty vector; i.e., vec.size() == 0 . In the case where there are no constraints of this form.

Example
The file fix_constraint.cpp contains an example using constraints. It returns true, if the test passes, and false otherwise.
Input File: src/fix_constraint.omh