solve_model: Solves the model using chosen solver

Description Usage Arguments

View source: R/solve_functions.R

Description

solve_model Returns the trend

Usage

1
solve_model(model, solver, y = NULL, trend = TRUE)

Arguments

model

model object containing coefficients and constraints

solver

solver to be used, options are "gurobi", "Rglpk", and "lpSolve"

y

vector of observations, only needed if trend = TRUE

trend

if TRUE returns trend, if FALSE returns residuals


halleybrantley/detrendr documentation built on May 30, 2019, 12:43 p.m.