constraint_to_row: Constraint to row

Description Usage Arguments Value

View source: R/create_matrices.R

Description

Evaluate a constraint, which has been formatted as an equation, with all terms moved to the left hand side, and return a single row of a (in)equality constraint matrix.

Usage

1
constraint_to_row(varnames, hyp)

Arguments

hyp

Character. An (in)equality constraint formatted as equation, with all terms on the left hand side.

Value

Numeric vector.


bain documentation built on Nov. 27, 2021, 1:06 a.m.