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

#include <gscip_ext.h>

Public Member Functions

 GScipLinearExpr ()=default
 
 GScipLinearExpr (SCIP_VAR *variable)
 
 GScipLinearExpr (double offset)
 

Public Attributes

absl::flat_hash_map< SCIP_VAR *, double > terms
 
double offset = 0.0
 

Detailed Description

Todo
(user): delete this type and the methods below, use a generic version templated on the variable type that supports operator overloads.

Definition at line 50 of file gscip_ext.h.

Constructor & Destructor Documentation

◆ GScipLinearExpr() [1/3]

operations_research::GScipLinearExpr::GScipLinearExpr ( )
default

◆ GScipLinearExpr() [2/3]

operations_research::GScipLinearExpr::GScipLinearExpr ( SCIP_VAR * variable)
explicit

Definition at line 39 of file gscip_ext.cc.

◆ GScipLinearExpr() [3/3]

operations_research::GScipLinearExpr::GScipLinearExpr ( double offset)
explicit

Definition at line 41 of file gscip_ext.cc.

Member Data Documentation

◆ offset

double operations_research::GScipLinearExpr::offset = 0.0

Definition at line 52 of file gscip_ext.h.

◆ terms

absl::flat_hash_map<SCIP_VAR*, double> operations_research::GScipLinearExpr::terms

Definition at line 51 of file gscip_ext.h.


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