# By default, produces only the identifiability constraint
build_constraints(4)
# Positive and increasing coefficients
build_constraints(4, sign = 1, monotone = 1)
# Concavity constraint
build_constraints(7, convex = -1)
# Any numeric can be passed to the function
build_constraints(5, monotone = pi)
Run the code above in your browser using DataLab