This function is called by optimize.portfolio to solve maximum return
maxret_opt(R, moments, constraints, target, solver = "glpk", control = NULL)
xts object of asset returns
object of moments computed based on objective functions
object of constraints in the portfolio object extracted with get_constraints
target return value
solver to use
list of solver control parameters