Google OR-Tools v9.11
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 <limits>
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.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 "absl/types/optional.h"
#include "ortools/base/accurate_sum.h"
#include "ortools/base/commandlineflags.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
 In SWIG mode, we don't want anything besides these top-level includes.
 

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."  )

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.