Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::GScipIndicatorConstraint Struct Reference

#include <gscip.h>

Public Attributes

SCIP_VAR * indicator_variable = nullptr
 The z variable above. The vartype must be kBinary.
 
bool negate_indicator = false
 
std::vector< SCIP_Var * > variables
 The x variable above.
 
std::vector< double > coefficients
 a above. Must have the same size as x.
 
double upper_bound = std::numeric_limits<double>::infinity()
 b above.
 

Detailed Description

Models the constraint z = 1 => a * x <= b If negate_indicator, then instead: z = 0 => a * x <= b

Definition at line 569 of file gscip.h.

Member Data Documentation

◆ coefficients

std::vector<double> operations_research::GScipIndicatorConstraint::coefficients

a above. Must have the same size as x.

Definition at line 576 of file gscip.h.

◆ indicator_variable

SCIP_VAR* operations_research::GScipIndicatorConstraint::indicator_variable = nullptr

The z variable above. The vartype must be kBinary.

Definition at line 571 of file gscip.h.

◆ negate_indicator

bool operations_research::GScipIndicatorConstraint::negate_indicator = false

Definition at line 572 of file gscip.h.

◆ upper_bound

double operations_research::GScipIndicatorConstraint::upper_bound = std::numeric_limits<double>::infinity()

b above.

Definition at line 578 of file gscip.h.

◆ variables

std::vector<SCIP_Var*> operations_research::GScipIndicatorConstraint::variables

The x variable above.

Definition at line 574 of file gscip.h.


The documentation for this struct was generated from the following file: