Solver of Continuous Quadratic Knapsack Problems (CQKnP) based on calls to the Cplex callable library.
More...
#include <CQKnPCplex.h>
Inheritance diagram for CQKnPCplex:Public Member Functions | |
| CQKnPCplex (const int alg=0, const double eps=1e-6) | |
| The parameter alg controls which algorithm CPLEX uses to solve continuous quadratic knapsack problem. | |
| void | SetCplexParam (int whichparam, double value) |
| The first two methods allow to set the many algorithmic parameters of Cplex; see the documentation of CPXsetintparam() and CPXsetdblparam() in the Cplex manual for details. | |
| void | SetAlg (const int alg=0) |
| Allows to change the algorithm to be used in the next calls to SolveKNP(); see the comments to the constructor for details. | |
Solver of Continuous Quadratic Knapsack Problems (CQKnP) based on calls to the Cplex callable library.
Derives from CQKnpClass and therefore it conforms to its interface.
| CQKnPCplex | ( | const int | alg = 0, |
| const double | eps = 1e-6 |
||
| ) |
The parameter alg controls which algorithm CPLEX uses to solve continuous quadratic knapsack problem.
Possible values of this parameter are:
0 [default] et CPLEX choose. 1 Primal simplex; 2 Dual simplex [See the documentation of CPX_PARAM_QPMETHOD in the Cplex manual for details.] The parameter Eps defines the convergence tolerance required to construct the solution [default value is 1e-6]. [See the documentation of CPX_PARAM_BAREPCOMP in the Cplex manual for details.] The choices can be changed at any time with SetAlg() and SetEps(), respectively [see below].
| void SetCplexParam | ( | int | whichparam, |
| double | value | ||
| ) | [inline] |
The first two methods allow to set the many algorithmic parameters of Cplex; see the documentation of CPXsetintparam() and CPXsetdblparam() in the Cplex manual for details.
| void SetAlg | ( | const int | alg = 0 | ) | [inline] |
Allows to change the algorithm to be used in the next calls to SolveKNP(); see the comments to the constructor for details.