#include "ortools/math_opt/validators/callback_validator.h"
#include <algorithm>
#include <limits>
#include <string>
#include <vector>
#include "absl/container/flat_hash_set.h"
#include "absl/status/status.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_join.h"
#include "google/protobuf/duration.pb.h"
#include "ortools/base/logging.h"
#include "ortools/base/status_macros.h"
#include "ortools/math_opt/callback.pb.h"
#include "ortools/math_opt/core/math_opt_proto_utils.h"
#include "ortools/math_opt/core/model_summary.h"
#include "ortools/math_opt/core/sparse_vector_view.h"
#include "ortools/math_opt/solution.pb.h"
#include "ortools/math_opt/sparse_containers.pb.h"
#include "ortools/math_opt/validators/ids_validator.h"
#include "ortools/math_opt/validators/model_parameters_validator.h"
#include "ortools/math_opt/validators/scalar_validator.h"
#include "ortools/math_opt/validators/solution_validator.h"
#include "ortools/math_opt/validators/sparse_vector_validator.h"
#include "ortools/port/proto_utils.h"
Go to the source code of this file.
◆ RETURN_IF_SCALAR
#define RETURN_IF_SCALAR |
( |
| stat, |
|
|
| value, |
|
|
| option ) |
Value: do { \
if (stat.has_##
value()) { \
RETURN_IF_ERROR(CheckScalar(static_cast<double>(stat.value()), option)) \
<<
"Invalid CallbackDataProto." << #stat <<
"." << #
value; \
} \
} while (false)