Learn R Programming

gptk (version 1.0)

optimiDefaultConstraint: Returns function for parameter constraint.

Description

returns the current default function for constraining a parameter.

Usage

val <- optimiDefaultConstraint(constraint)

Arguments

constraint
the type of constraint you want to place on the parameter, options include 'positive' (gives an 'exp' constraint) and 'zeroone' (gives a 'sigmoid' constraint).

Value

  • vala list with two components: 'func' for the name of function used to apply the constraint, and 'hasArgs' for a boolean flag if the function requires additional arguments.

See Also

expTransform, sigmoidTransform.

Examples

Run this code
optimiDefaultConstraint('positive')
  optimiDefaultConstraint('bounded')

Run the code above in your browser using DataLab