fix_constraint

View page source

User Defined Fixed Effects Constraint Function

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_double > vec

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.