Performs least squares constrained optimization on a linear objective function. It contains a number of algorithms to choose from and offers a formula syntax similar to lm().
A package to perform a least squares constrained optimization on a linear objective function. It provides a very easy way to run a constrained linear regression using the
lm formula syntax that
most R users are familiar with.
Then to install colf run the following on your console:
By typing on your console:
library(colf)colf_nls(mpg ~ ., mtcars, upper = rep(2, 11), lower = rep(-0.5, 11))
you can see a first example of how to run a constrained optimization on a linear objective function!
Will be filled in soon