Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
math_opt_proto_utils.cc File Reference
#include "ortools/math_opt/core/math_opt_proto_utils.h"
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <functional>
#include <limits>
#include <optional>
#include <string>
#include "absl/container/flat_hash_set.h"
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/strings/string_view.h"
#include "ortools/base/logging.h"
#include "ortools/base/status_builder.h"
#include "ortools/math_opt/callback.pb.h"
#include "ortools/math_opt/core/sparse_vector_view.h"
#include "ortools/math_opt/model.pb.h"
#include "ortools/math_opt/model_parameters.pb.h"
#include "ortools/math_opt/model_update.pb.h"
#include "ortools/math_opt/result.pb.h"
#include "ortools/math_opt/solution.pb.h"
#include "ortools/math_opt/sparse_containers.pb.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::math_opt
 An object oriented wrapper for quadratic constraints in ModelStorage.
 

Functions

ObjectiveBoundsProto operations_research::math_opt::GetObjectiveBounds (const SolveResultProto &solve_result)
 
ProblemStatusProto operations_research::math_opt::GetProblemStatus (const SolveResultProto &solve_result)
 
void operations_research::math_opt::RemoveSparseDoubleVectorZeros (SparseDoubleVectorProto &sparse_vector)
 
SparseDoubleVectorProto operations_research::math_opt::FilterSparseVector (const SparseDoubleVectorProto &input, const SparseVectorFilterProto &filter)
 
void operations_research::math_opt::ApplyAllFilters (const ModelSolveParametersProto &model_solve_params, SolutionProto &solution)
 
absl::flat_hash_set< CallbackEventProto > operations_research::math_opt::EventSet (const CallbackRegistrationProto &callback_registration)
 Returns the callback_registration.request_registration as a set of enums.
 
TerminationProto operations_research::math_opt::TerminateForLimit (const LimitProto limit, const bool feasible, const absl::string_view detail)
 
TerminationProto operations_research::math_opt::FeasibleTermination (const LimitProto limit, const absl::string_view detail)
 
TerminationProto operations_research::math_opt::NoSolutionFoundTermination (const LimitProto limit, const absl::string_view detail)
 
TerminationProto operations_research::math_opt::TerminateForReason (const TerminationReasonProto reason, const absl::string_view detail)
 
ObjectiveBoundsProto operations_research::math_opt::MakeTrivialBounds (const bool is_maximize)
 
TerminationProto operations_research::math_opt::TerminateForReason (const bool is_maximize, const TerminationReasonProto reason, const absl::string_view detail)
 
TerminationProto operations_research::math_opt::OptimalTerminationProto (const double finite_primal_objective, const double dual_objective, const absl::string_view detail)
 
TerminationProto operations_research::math_opt::UnboundedTerminationProto (const bool is_maximize, const absl::string_view detail)
 
TerminationProto operations_research::math_opt::InfeasibleTerminationProto (bool is_maximize, const FeasibilityStatusProto dual_feasibility_status, const absl::string_view detail)
 
TerminationProto operations_research::math_opt::LimitTerminationProto (const bool is_maximize, const LimitProto limit, const std::optional< double > optional_finite_primal_objective, const std::optional< double > optional_dual_objective, const absl::string_view detail)
 
TerminationProto operations_research::math_opt::LimitTerminationProto (LimitProto limit, const double primal_objective, const double dual_objective, const bool claim_dual_feasible_solution_exists, const absl::string_view detail)
 
TerminationProto operations_research::math_opt::CutoffTerminationProto (bool is_maximize, absl::string_view detail={})
 Calls NoSolutionFoundTerminationProto() with LIMIT_CUTOFF LIMIT.
 
TerminationProto operations_research::math_opt::NoSolutionFoundTerminationProto (const bool is_maximize, const LimitProto limit, const std::optional< double > optional_dual_objective, const absl::string_view detail)
 
TerminationProto operations_research::math_opt::FeasibleTerminationProto (const bool is_maximize, const LimitProto limit, const double primal_objective, const std::optional< double > optional_dual_objective, const absl::string_view detail)
 
TerminationProto operations_research::math_opt::InfeasibleOrUnboundedTerminationProto (bool is_maximize, const FeasibilityStatusProto dual_feasibility_status, const absl::string_view detail)
 
absl::Status operations_research::math_opt::ModelIsSupported (const ModelProto &model, const SupportedProblemStructures &support_menu, const absl::string_view solver_name)
 
bool operations_research::math_opt::UpdateIsSupported (const ModelUpdateProto &update, const SupportedProblemStructures &support_menu)
 
void operations_research::math_opt::UpgradeSolveResultProtoForStatsMigration (SolveResultProto &solve_result_proto)