Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include "ortools/flatzinc/cp_model_fz_solver.h"
#include <algorithm>
#include <cstdint>
#include <functional>
#include <limits>
#include <string>
#include <tuple>
#include <vector>
#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "absl/flags/flag.h"
#include "absl/log/check.h"
#include "absl/strings/match.h"
#include "absl/strings/str_cat.h"
#include "absl/types/span.h"
#include "google/protobuf/text_format.h"
#include "ortools/base/iterator_adaptors.h"
#include "ortools/base/logging.h"
#include "ortools/flatzinc/checker.h"
#include "ortools/flatzinc/model.h"
#include "ortools/sat/cp_model.pb.h"
#include "ortools/sat/cp_model_checker.h"
#include "ortools/sat/cp_model_solver.h"
#include "ortools/sat/cp_model_utils.h"
#include "ortools/sat/model.h"
#include "ortools/sat/sat_parameters.pb.h"
#include "ortools/util/logging.h"
#include "ortools/util/sorted_interval_list.h"
Go to the source code of this file.
Namespaces | |
namespace | operations_research |
In SWIG mode, we don't want anything besides these top-level includes. | |
namespace | operations_research::sat |
Functions | |
ABSL_FLAG (int64_t, fz_int_max, int64_t{1}<< 50, "Default max value for unbounded integer variables.") | |
void | operations_research::sat::SolveFzWithCpModelProto (const fz::Model &fz_model, const fz::FlatzincSatParameters &p, const std::string &sat_params, SolverLogger *logger, SolverLogger *solution_logger) |
ABSL_FLAG | ( | int64_t | , |
fz_int_max | , | ||
int64_t{1}<< | 50, | ||
"Default max value for unbounded integer variables." | ) |
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
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::flat_hash_map<int64_t, int> constant_value_to_index |
Definition at line 133 of file cp_model_fz_solver.cc.
absl::flat_hash_map<fz::Variable*, int> fz_var_to_index |
Mapping from flatzinc variables to CpModelProto variables.
Definition at line 132 of file cp_model_fz_solver.cc.
absl::flat_hash_map<std::tuple<int, int64_t, int, int64_t, int>, int> interval_key_to_index |
Definition at line 135 of file cp_model_fz_solver.cc.
SatParameters parameters |
Definition at line 129 of file cp_model_fz_solver.cc.
CpModelProto proto |
The output proto.
Definition at line 128 of file cp_model_fz_solver.cc.
int64_t value = 0 |
Definition at line 57 of file cp_model_fz_solver.cc.
int var = kNoVar |
Definition at line 56 of file cp_model_fz_solver.cc.
absl::flat_hash_map<int, int> var_to_lit_implies_greater_than_zero |
Definition at line 136 of file cp_model_fz_solver.cc.