#include <second_order_cone_constraint.h>
|
using | IdType = SecondOrderConeConstraintId |
| The typed integer used for ids.
|
|
A value type that references a second-order cone constraint from ModelStorage. Usually this type is passed by copy.
This type implements https://abseil.io/docs/cpp/guides/hash.
Definition at line 37 of file second_order_cone_constraint.h.
◆ IdType
◆ SecondOrderConeConstraint()
operations_research::math_opt::SecondOrderConeConstraint::SecondOrderConeConstraint |
( |
const ModelStorage * | storage, |
|
|
SecondOrderConeConstraintId | id ) |
|
inline |
◆ ArgumentsToNorm()
std::vector< LinearExpression > operations_research::math_opt::SecondOrderConeConstraint::ArgumentsToNorm |
( |
| ) |
const |
Returns "arguments_to_norm" with respect to a constraint of the form |arguments_to_norm
|₂ ≤ upper_bound.
Definition at line 37 of file second_order_cone_constraint.cc.
◆ id()
int64_t operations_research::math_opt::SecondOrderConeConstraint::id |
( |
| ) |
const |
|
inline |
◆ name()
absl::string_view operations_research::math_opt::SecondOrderConeConstraint::name |
( |
| ) |
const |
|
inline |
◆ NonzeroVariables()
std::vector< Variable > operations_research::math_opt::SecondOrderConeConstraint::NonzeroVariables |
( |
| ) |
const |
|
inline |
Returns all variables that appear in the second-order cone constraint with a nonzero coefficient. Order is not defined.
Definition at line 110 of file second_order_cone_constraint.h.
◆ storage()
const ModelStorage * operations_research::math_opt::SecondOrderConeConstraint::storage |
( |
| ) |
const |
|
inline |
◆ ToString()
std::string operations_research::math_opt::SecondOrderConeConstraint::ToString |
( |
| ) |
const |
Returns a detailed string description of the contents of the constraint (not its name, use <<
for that instead).
Definition at line 48 of file second_order_cone_constraint.cc.
◆ typed_id()
SecondOrderConeConstraintId operations_research::math_opt::SecondOrderConeConstraint::typed_id |
( |
| ) |
const |
|
inline |
◆ UpperBound()
LinearExpression operations_research::math_opt::SecondOrderConeConstraint::UpperBound |
( |
| ) |
const |
◆ AbslHashValue
◆ operator!=
◆ operator<<
Streams the name of the constraint, as registered upon constraint creation, or a short default if none was provided.
- Todo
- (b/170992529): handle quoting of invalid characters in the name.
Definition at line 129 of file second_order_cone_constraint.h.
◆ operator==
The documentation for this class was generated from the following files: