|
Limbo 3.5.4
|
Heuristic to search for feasible solutions by combined strategies. More...
#include <MultiKnapsackLagRelax.h>
Public Member Functions | |
| SearchByCombinedStrategy (solver_type *solver, coefficient_value_type convergeRatio=0.1) | |
| constructor | |
| ~SearchByCombinedStrategy () | |
| destructor | |
| virtual SolverProperty | operator() (updater_type *updater) |
| API to search for feasible solutions. | |
| Public Member Functions inherited from limbo::solvers::FeasibleSearcher< T, V > | |
| FeasibleSearcher (solver_type *solver) | |
| constructor | |
| virtual | ~FeasibleSearcher () |
| destructor | |
Protected Attributes | |
| SearchByAdjustCoefficient< coefficient_value_type, variable_value_type > | m_searcherCoeff |
| search by adjusting coefficient | |
| SearchByBinSmoothing< coefficient_value_type, variable_value_type > | m_searcherSmoothing |
| search by smoothing dense bins | |
| Protected Attributes inherited from limbo::solvers::FeasibleSearcher< T, V > | |
| solver_type * | m_solver |
| problem solver | |
| model_type *const & | m_model |
| model for the problem | |
| coefficient_value_type *& | m_vObjCoef |
| coefficients variables in objective | |
| matrix_type const & | m_constrMatrix |
| constraint matrix \(A\) | |
| coefficient_value_type *const & | m_vConstrRhs |
| constraint right hand side \(b\) | |
| variable_type *const & | m_vGroupedVariable |
| array of grouped variables according to item | |
| unsigned int *const & | m_vVariableGroupBeginIndex |
| begin index of grouped variable | |
| unsigned int const & | m_numGroups |
| number of groups | |
| std::vector< unsigned int > const & | m_vConstraintPartition |
| indices of constraints, the first partition is capacity constraints | |
| coefficient_value_type *& | m_vLagMultiplier |
| array of lagrangian multipliers | |
| coefficient_value_type *& | m_vSlackness |
| array of slackness values in each iteration, \( b-Ax \) | |
| std::vector< coefficient_value_type > const & | m_vScalingFactor |
| scaling factor for constraints and objective, last entry is for objective | |
| coefficient_value_type & | m_objConstant |
| constant value in objective from lagrangian relaxation | |
| coefficient_value_type & | m_lagObj |
| current objective of the lagrangian subproblem | |
| unsigned int & | m_iter |
| current iteration | |
| unsigned int & | m_maxIters |
| maximum number of iterations | |
| bool & | m_useInitialSol |
| whether use initial solutions or not | |
| std::vector< variable_value_type > & | m_vBestVariableSol |
| best feasible solution found so far | |
| coefficient_value_type & | m_bestObj |
| best objective found so far | |
Additional Inherited Members | |
| Protected Member Functions inherited from limbo::solvers::FeasibleSearcher< T, V > | |
| void | computeSlackness () |
| compute slackness in an iteration | |
| SolverProperty | solveSubproblems (updater_type *updater, unsigned int beginIter, unsigned int endIter) |
| kernel lagrangian iterations | |
Heuristic to search for feasible solutions by combined strategies.
| T | coefficient value type |
| V | variable value type |
Definition at line 1725 of file MultiKnapsackLagRelax.h.
| typedef FeasibleSearcher<T, V> limbo::solvers::SearchByCombinedStrategy< T, V >::base_type |
base type
Definition at line 1729 of file MultiKnapsackLagRelax.h.
| typedef model_type::coefficient_value_type limbo::solvers::SearchByCombinedStrategy< T, V >::coefficient_value_type |
coefficient value type
Definition at line 1737 of file MultiKnapsackLagRelax.h.
| typedef model_type::constraint_type limbo::solvers::SearchByCombinedStrategy< T, V >::constraint_type |
constraint type
Definition at line 1745 of file MultiKnapsackLagRelax.h.
| typedef model_type::expression_type limbo::solvers::SearchByCombinedStrategy< T, V >::expression_type |
expression type
Definition at line 1743 of file MultiKnapsackLagRelax.h.
| typedef base_type::model_type limbo::solvers::SearchByCombinedStrategy< T, V >::model_type |
model type
Definition at line 1731 of file MultiKnapsackLagRelax.h.
| typedef base_type::solver_type limbo::solvers::SearchByCombinedStrategy< T, V >::solver_type |
solver type
Definition at line 1733 of file MultiKnapsackLagRelax.h.
| typedef model_type::term_type limbo::solvers::SearchByCombinedStrategy< T, V >::term_type |
term type
Definition at line 1747 of file MultiKnapsackLagRelax.h.
| typedef solver_type::updater_type limbo::solvers::SearchByCombinedStrategy< T, V >::updater_type |
updater type for lagrangian multipliers
Definition at line 1735 of file MultiKnapsackLagRelax.h.
| typedef model_type::variable_type limbo::solvers::SearchByCombinedStrategy< T, V >::variable_type |
variable type
Definition at line 1741 of file MultiKnapsackLagRelax.h.
| typedef model_type::variable_value_type limbo::solvers::SearchByCombinedStrategy< T, V >::variable_value_type |
variable value type
Definition at line 1739 of file MultiKnapsackLagRelax.h.
|
inline |
constructor
| solver | problem solver |
| convergeRatio | ratio of convergence for limbo::solvers::SearchByAdjustCoefficient |
Definition at line 1752 of file MultiKnapsackLagRelax.h.
|
inline |
destructor
Definition at line 1759 of file MultiKnapsackLagRelax.h.
|
inlinevirtual |
API to search for feasible solutions.
| updater | updater for lagrangian multipliers |
Reimplemented from limbo::solvers::FeasibleSearcher< T, V >.
Definition at line 1764 of file MultiKnapsackLagRelax.h.
|
protected |
search by adjusting coefficient
Definition at line 1773 of file MultiKnapsackLagRelax.h.
|
protected |
search by smoothing dense bins
Definition at line 1774 of file MultiKnapsackLagRelax.h.