Google OR-Tools
v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
checker.h
Go to the documentation of this file.
1
// Copyright 2010-2025 Google LLC
2
// Licensed under the Apache License, Version 2.0 (the "License");
3
// you may not use this file except in compliance with the License.
4
// You may obtain a copy of the License at
5
//
6
// http://www.apache.org/licenses/LICENSE-2.0
7
//
8
// Unless required by applicable law or agreed to in writing, software
9
// distributed under the License is distributed on an "AS IS" BASIS,
10
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
// See the License for the specific language governing permissions and
12
// limitations under the License.
13
14
#ifndef ORTOOLS_FLATZINC_CHECKER_H_
15
#define ORTOOLS_FLATZINC_CHECKER_H_
16
17
#include <cstdint>
18
#include <functional>
19
#include <vector>
20
21
#include "
ortools/flatzinc/model.h
"
22
#include "
ortools/util/logging.h
"
23
24
namespace
operations_research
{
25
namespace
fz
{
26
27
// Verifies that the solution specified by the given evaluator is a
28
// feasible solution of the given model. Returns true iff this is the
29
// case.
30
bool
CheckSolution
(
31
const
Model
& model,
const
std::function<int64_t(
Variable
*)>& evaluator,
32
const
std::function<std::vector<int64_t>(
Variable
*)>& set_evaluator,
33
SolverLogger* logger);
34
35
}
// namespace fz
36
}
// namespace operations_research
37
38
#endif
// ORTOOLS_FLATZINC_CHECKER_H_
operations_research::fz::Model
Definition
model.h:345
model.h
operations_research::fz
Definition
checker.cc:34
operations_research::fz::CheckSolution
bool CheckSolution(const Model &model, const std::function< int64_t(Variable *)> &evaluator, const std::function< std::vector< int64_t >(Variable *)> &set_evaluator, SolverLogger *logger)
Definition
checker.cc:1911
operations_research
OR-Tools root namespace.
Definition
binary_indexed_tree.h:21
operations_research::fz::Variable
Definition
model.h:120
logging.h
ortools
flatzinc
checker.h
Generated by
1.15.0