Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
cp_model_solver_helpers.h File Reference
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
#include "absl/flags/declare.h"
#include "ortools/base/timer.h"
#include "ortools/sat/cp_model.pb.h"
#include "ortools/sat/integer.h"
#include "ortools/sat/model.h"
#include "ortools/sat/sat_parameters.pb.h"
#include "ortools/sat/stat_tables.h"
#include "ortools/sat/synchronization.h"
#include "ortools/sat/util.h"
#include "ortools/sat/work_assignment.h"
#include "ortools/util/logging.h"

Go to the source code of this file.

Classes

struct  operations_research::sat::SharedClasses
 

Namespaces

namespace  operations_research
 In SWIG mode, we don't want anything besides these top-level includes.
 
namespace  operations_research::sat
 

Functions

 ABSL_DECLARE_FLAG (bool, cp_model_dump_models)
 
 ABSL_DECLARE_FLAG (bool, cp_model_check_intermediate_solutions)
 
 ABSL_DECLARE_FLAG (std::string, cp_model_dump_prefix)
 
 ABSL_DECLARE_FLAG (bool, cp_model_dump_submodels)
 
void operations_research::sat::LoadCpModel (const CpModelProto &model_proto, Model *model)
 
void operations_research::sat::SolveLoadedCpModel (const CpModelProto &model_proto, Model *model)
 
void operations_research::sat::RegisterVariableBoundsLevelZeroExport (const CpModelProto &, SharedBoundsManager *shared_bounds_manager, Model *model)
 
void operations_research::sat::RegisterVariableBoundsLevelZeroImport (const CpModelProto &model_proto, SharedBoundsManager *shared_bounds_manager, Model *model)
 
void operations_research::sat::RegisterObjectiveBestBoundExport (IntegerVariable objective_var, SharedResponseManager *shared_response_manager, Model *model)
 
void operations_research::sat::RegisterObjectiveBoundsImport (SharedResponseManager *shared_response_manager, Model *model)
 
void operations_research::sat::RegisterClausesExport (int id, SharedClausesManager *shared_clauses_manager, Model *model)
 Registers a callback that will export good clauses discovered during search.
 
int operations_research::sat::RegisterClausesLevelZeroImport (int id, SharedClausesManager *shared_clauses_manager, Model *model)
 
void operations_research::sat::PostsolveResponseWrapper (const SatParameters &params, int num_variable_in_original_model, const CpModelProto &mapping_proto, const std::vector< int > &postsolve_mapping, std::vector< int64_t > *solution)
 
void operations_research::sat::QuickSolveWithHint (const CpModelProto &model_proto, Model *model)
 
void operations_research::sat::MinimizeL1DistanceWithHint (const CpModelProto &model_proto, Model *model)
 
void operations_research::sat::LoadFeasibilityPump (const CpModelProto &model_proto, Model *model)
 
void operations_research::sat::AdaptGlobalParameters (const CpModelProto &model_proto, Model *model)
 
void operations_research::sat::LoadDebugSolution (const CpModelProto &model_proto, Model *model)
 

Function Documentation

◆ ABSL_DECLARE_FLAG() [1/4]

ABSL_DECLARE_FLAG ( bool ,
cp_model_check_intermediate_solutions  )

◆ ABSL_DECLARE_FLAG() [2/4]

ABSL_DECLARE_FLAG ( bool ,
cp_model_dump_models  )

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

◆ ABSL_DECLARE_FLAG() [3/4]

ABSL_DECLARE_FLAG ( bool ,
cp_model_dump_submodels  )

◆ ABSL_DECLARE_FLAG() [4/4]

ABSL_DECLARE_FLAG ( std::string ,
cp_model_dump_prefix  )