Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
quadratic_program.cc File Reference
#include "ortools/pdlp/quadratic_program.h"
#include <algorithm>
#include <cstdint>
#include <limits>
#include <optional>
#include <string>
#include <tuple>
#include <vector>
#include "Eigen/Core"
#include "Eigen/SparseCore"
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "ortools/base/status_macros.h"
#include "ortools/linear_solver/linear_solver.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::pdlp
 Validation utilities for solvers.proto.
 
namespace  operations_research::pdlp::internal
 Utility functions for internal use only.
 

Functions

absl::Status operations_research::pdlp::ValidateQuadraticProgramDimensions (const QuadraticProgram &qp)
 
absl::StatusOr< QuadraticProgramoperations_research::pdlp::QpFromMpModelProto (const MPModelProto &proto, bool relax_integer_variables, bool include_names)
 
absl::Status operations_research::pdlp::CanFitInMpModelProto (const QuadraticProgram &qp)
 
absl::Status operations_research::pdlp::internal::TestableCanFitInMpModelProto (const QuadraticProgram &qp, const int64_t largest_ok_size)
 
absl::StatusOr< MPModelProto > operations_research::pdlp::QpToMpModelProto (const QuadraticProgram &qp)
 
std::string operations_research::pdlp::ToString (const QuadraticProgram &qp, int64_t max_size)
 
void operations_research::pdlp::SetEigenMatrixFromTriplets (std::vector< Eigen::Triplet< double, int64_t > > triplets, Eigen::SparseMatrix< double, Eigen::ColMajor, int64_t > &matrix)
 
void operations_research::pdlp::internal::CombineRepeatedTripletsInPlace (std::vector< Eigen::Triplet< double, int64_t > > &triplets)