![]() |
OR-Tools
9.6
|
Definition at line 100 of file cp_model_lns.h.
Public Types | |
| enum | SubsolverType { FULL_PROBLEM , FIRST_SOLUTION , INCOMPLETE , HELPER } |
Public Member Functions | |
| NeighborhoodGeneratorHelper (CpModelProto const *model_proto, SatParameters const *parameters, SharedResponseManager *shared_response, SharedBoundsManager *shared_bounds=nullptr) | |
| bool | TaskIsAvailable () override |
| std::function< void()> | GenerateTask (int64_t) override |
| void | Synchronize () override |
| Neighborhood | FixGivenVariables (const CpSolverResponse &base_solution, const absl::flat_hash_set< int > &variables_to_fix) const |
| Neighborhood | RemoveMarkedConstraints (const std::vector< int > &constraints_to_remove) const |
| Neighborhood | RelaxGivenVariables (const CpSolverResponse &initial_solution, const std::vector< int > &relaxed_variables) const |
| Neighborhood | FixAllVariables (const CpSolverResponse &initial_solution) const |
| Neighborhood | FullNeighborhood () const |
| Neighborhood | NoNeighborhood () const |
| void | AddSolutionHinting (const CpSolverResponse &initial_solution, CpModelProto *model_proto) const |
| bool | IsActive (int var) const ABSL_SHARED_LOCKS_REQUIRED(graph_mutex_) |
| std::vector< int > | ActiveVariables () const |
| int | NumActiveVariables () const |
| std::vector< int > | ActiveObjectiveVariables () const |
| bool | DifficultyMeansFullNeighborhood (double difficulty) const |
| const std::vector< int > & | ActiveVariablesWhileHoldingLock () const ABSL_SHARED_LOCKS_REQUIRED(graph_mutex_) |
| const std::vector< std::vector< int > > & | ConstraintToVar () const ABSL_SHARED_LOCKS_REQUIRED(graph_mutex_) |
| const std::vector< std::vector< int > > & | VarToConstraint () const ABSL_SHARED_LOCKS_REQUIRED(graph_mutex_) |
| const absl::Span< const int > | TypeToConstraints (ConstraintProto::ConstraintCase type) const |
| std::vector< int > | GetActiveIntervals (const CpSolverResponse &initial_solution) const |
| std::vector< std::vector< int > > | GetUniqueIntervalSets () const |
| std::vector< std::vector< int > > | GetRoutingPaths (const CpSolverResponse &initial_solution) const |
| std::vector< std::pair< int, int > > | GetSchedulingPrecedences (const absl::flat_hash_set< int > &ignored_intervals, const CpSolverResponse &initial_solution, absl::BitGenRef random) const |
| const CpModelProto & | ModelProto () const |
| const SatParameters & | Parameters () const |
| const SharedResponseManager & | shared_response () const |
| double | score () const |
| double | deterministic_time () const |
| std::string | name () const |
| SubsolverType | type () const |
| virtual std::string | StatisticsString () const |
Public Attributes | |
| absl::Mutex | graph_mutex_ |
Protected Attributes | |
| const std::string | name_ |
| const SubsolverType | type_ |
| double | score_ = 0.0 |
| double | deterministic_time_ = 0.0 |
|
inherited |
| Enumerator | |
|---|---|
| FULL_PROBLEM | |
| FIRST_SOLUTION | |
| INCOMPLETE | |
| HELPER | |
Definition at line 45 of file subsolver.h.
| NeighborhoodGeneratorHelper | ( | CpModelProto const * | model_proto, |
| SatParameters const * | parameters, | ||
| SharedResponseManager * | shared_response, | ||
| SharedBoundsManager * | shared_bounds = nullptr |
||
| ) |
Definition at line 62 of file cp_model_lns.cc.
|
inline |
Definition at line 164 of file cp_model_lns.h.
|
inline |
Definition at line 152 of file cp_model_lns.h.
|
inline |
Definition at line 179 of file cp_model_lns.h.
| void AddSolutionHinting | ( | const CpSolverResponse & | initial_solution, |
| CpModelProto * | model_proto | ||
| ) | const |
Definition at line 1066 of file cp_model_lns.cc.
|
inline |
Definition at line 186 of file cp_model_lns.h.
|
inlineinherited |
Definition at line 86 of file subsolver.h.
|
inline |
Definition at line 171 of file cp_model_lns.h.
| Neighborhood FixAllVariables | ( | const CpSolverResponse & | initial_solution | ) | const |
Definition at line 1111 of file cp_model_lns.cc.
| Neighborhood FixGivenVariables | ( | const CpSolverResponse & | base_solution, |
| const absl::flat_hash_set< int > & | variables_to_fix | ||
| ) | const |
Definition at line 963 of file cp_model_lns.cc.
| Neighborhood FullNeighborhood | ( | ) | const |
Definition at line 372 of file cp_model_lns.cc.
|
inlineoverridevirtual |
Implements SubSolver.
Definition at line 109 of file cp_model_lns.h.
| std::vector< int > GetActiveIntervals | ( | const CpSolverResponse & | initial_solution | ) | const |
Definition at line 390 of file cp_model_lns.cc.
| std::vector< std::vector< int > > GetRoutingPaths | ( | const CpSolverResponse & | initial_solution | ) | const |
Definition at line 878 of file cp_model_lns.cc.
| std::vector< std::pair< int, int > > GetSchedulingPrecedences | ( | const absl::flat_hash_set< int > & | ignored_intervals, |
| const CpSolverResponse & | initial_solution, | ||
| absl::BitGenRef | random | ||
| ) | const |
Definition at line 854 of file cp_model_lns.cc.
| std::vector< std::vector< int > > GetUniqueIntervalSets | ( | ) | const |
Definition at line 439 of file cp_model_lns.cc.
| bool IsActive | ( | int | var | ) | const |
Definition at line 362 of file cp_model_lns.cc.
|
inline |
Definition at line 230 of file cp_model_lns.h.
|
inlineinherited |
Definition at line 89 of file subsolver.h.
| Neighborhood NoNeighborhood | ( | ) | const |
Definition at line 384 of file cp_model_lns.cc.
|
inline |
Definition at line 159 of file cp_model_lns.h.
|
inline |
Definition at line 231 of file cp_model_lns.h.
| Neighborhood RelaxGivenVariables | ( | const CpSolverResponse & | initial_solution, |
| const std::vector< int > & | relaxed_variables | ||
| ) | const |
Definition at line 1094 of file cp_model_lns.cc.
| Neighborhood RemoveMarkedConstraints | ( | const std::vector< int > & | constraints_to_remove | ) | const |
Definition at line 1084 of file cp_model_lns.cc.
|
inlineinherited |
Definition at line 82 of file subsolver.h.
|
inline |
Definition at line 233 of file cp_model_lns.h.
|
inlinevirtualinherited |
Definition at line 95 of file subsolver.h.
|
overridevirtual |
Implements SubSolver.
Definition at line 82 of file cp_model_lns.cc.
|
inlineoverridevirtual |
Implements SubSolver.
Definition at line 108 of file cp_model_lns.h.
|
inlineinherited |
Definition at line 92 of file subsolver.h.
|
inline |
Definition at line 196 of file cp_model_lns.h.
|
inline |
Definition at line 190 of file cp_model_lns.h.
|
protectedinherited |
Definition at line 101 of file subsolver.h.
|
mutable |
Definition at line 242 of file cp_model_lns.h.
|
protectedinherited |
Definition at line 98 of file subsolver.h.
|
protectedinherited |
Definition at line 100 of file subsolver.h.
|
protectedinherited |
Definition at line 99 of file subsolver.h.