OR-Tools  9.6
model_util.h File Reference

Go to the source code of this file.

Namespaces

 operations_research
 Collection of objects used to extend the Constraint Solver library.
 
 operations_research::math_opt
 

Functions

LinearExpression ToLinearExpression (const ModelStorage &storage, const SparseCoefficientMap &coeffs, const double offset)
 
std::pair< SparseCoefficientMap, double > FromLinearExpression (const LinearExpression &expression)
 
template<typename IdType >
std::vector< Variable > AtomicConstraintNonzeroVariables (const ModelStorage &storage, const IdType id)
 
template<typename ConstraintType >
std::vector< ConstraintType > AtomicConstraints (const ModelStorage &storage)
 
template<typename ConstraintType >
std::vector< ConstraintType > SortedAtomicConstraints (const ModelStorage &storage)
 

Variables

constexpr absl::string_view kDeletedConstraintDefaultDescription