Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
model_validator.cc File Reference
#include "ortools/linear_solver/model_validator.h"
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "absl/flags/flag.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/match.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "absl/strings/string_view.h"
#include "ortools/base/accurate_sum.h"
#include "ortools/base/map_util.h"
#include "ortools/linear_solver/linear_solver.pb.h"
#include "ortools/port/file.h"
#include "ortools/port/proto_utils.h"
#include "ortools/util/fp_utils.h"
#include "ortools/util/lazy_mutable_copy.h"

Go to the source code of this file.

Namespaces

namespace  operations_research
 OR-Tools root namespace.

Macros

#define COPY_FIELD_IF_PRESENT(field)

Functions

 ABSL_FLAG (double, model_validator_infinity, 1e100, "Anything above or equal to this magnitude will be considered infinity.")
std::string operations_research::FindErrorInMPModelProto (const MPModelProto &model, double abs_value_threshold, const bool accept_trivially_infeasible_bounds)
std::optional< LazyMutableCopy< MPModelProto > > operations_research::ExtractValidMPModelOrPopulateResponseStatus (const MPModelRequest &request, MPSolutionResponse *response)
std::optional< LazyMutableCopy< MPModelProto > > operations_research::GetMPModelOrPopulateResponse (LazyMutableCopy< MPModelRequest > &request, MPSolutionResponse *response)
std::string operations_research::FindFeasibilityErrorInSolutionHint (const MPModelProto &model, double tolerance)
std::string operations_research::FindErrorInMPModelDeltaProto (const MPModelDeltaProto &delta, const MPModelProto &model)
void operations_research::MergeMPConstraintProtoExceptTerms (const MPConstraintProto &from, MPConstraintProto *to)
void operations_research::ApplyVerifiedMPModelDelta (const MPModelDeltaProto &delta, MPModelProto *model)

Macro Definition Documentation

◆ COPY_FIELD_IF_PRESENT

#define COPY_FIELD_IF_PRESENT ( field)
Value:
if (from.has_##field()) to->set_##field(from.field())
trees with all degrees equal to

Function Documentation

◆ ABSL_FLAG()

ABSL_FLAG ( double ,
model_validator_infinity ,
1e100 ,
"Anything above or equal to this magnitude will be considered infinity."  )