This function solves a quadratic programming problem using the Genetic Algorithm (GA) from the GA package.
qp_solver_GA(
n,
A,
b,
c,
x_max = 1,
print_message = FALSE,
maxiter = 1000,
popSize = 50,
pmutation = 0.2,
elitism = 5,
monitor = FALSE,
seed = 123,
...
)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 logical value indicating whether to print optimization details. Default is FALSE.
An integer specifying the maximum number of iterations. Default is 1000.
An integer specifying the population size for the GA. Default is 50.
A numeric value for mutation probability. Default is 0.2.
An integer specifying the number of elite individuals to carry over to the next generation. Default is 5.
A logical value indicating whether to display progress. Default is FALSE.
A numeric value used for the random number generator. Default is 123.
Additional control parameters for ga.
qp_solver, qp_solver_DEoptim, qp_solver_nloptr