This function provides a general interface to solve quadratic programming problems using different optimization methods. It supports Genetic Algorithm (GA), Differential Evolution (DEoptim), and Sequential Least Squares Programming (SLSQP).
qp_solver(n, A, b, c, x_max = 1, method = "GA", print_message = FALSE, ...)A list containing:
The optimal objective function value.
The optimal values of the decision variables.
An integer representing the number of decision variables.
A matrix representing the quadratic coefficients.
A numeric vector representing the linear coefficients.
A numeric scalar representing the constant term in the objective function.
An integer representing the upper bound for the decision variables. Default is 1.
A character string specifying the optimization method to use. Can be 'GA', 'DEoptim', or 'nloptr'.
A logical value indicating whether to print optimization details. Default is FALSE.
Additional control parameters passed to the chosen optimization method.
qp_solver_DEoptim, qp_solver_GA, qp_solver_nloptr