Detailed Description
#include <weights.h>
Public Member Functions | |
| Weights (int varweight_, int vbinary_, int vcontinous_, int vinteger_, int vimplint_, int consweight_) | |
| Weights () | |
| virtual | ~Weights () |
| int | calculate (SCIP_CONS *cons) const |
| int | calculate (SCIP_VAR *var) const |
Protected Attributes | |
| int | varweight |
| int | vbinary |
| int | vcontinous |
| int | vinteger |
| int | vimplint |
| int | consweight |
Constructor & Destructor Documentation
◆ Weights() [1/2]
| gcg::Weights::Weights | ( | int | varweight_, |
| int | vbinary_, | ||
| int | vcontinous_, | ||
| int | vinteger_, | ||
| int | vimplint_, | ||
| int | consweight_ ) |
Definition at line 40 of file weights.cpp.
References consweight, varweight, vbinary, vcontinous, vimplint, and vinteger.
◆ Weights() [2/2]
| gcg::Weights::Weights | ( | ) |
Definition at line 58 of file weights.cpp.
References consweight, varweight, vbinary, vcontinous, vimplint, and vinteger.
◆ ~Weights()
|
virtual |
Definition at line 69 of file weights.cpp.
Member Function Documentation
◆ calculate() [1/2]
| int gcg::Weights::calculate | ( | SCIP_CONS * | cons | ) | const |
Definition at line 74 of file weights.cpp.
References consweight.
◆ calculate() [2/2]
| int gcg::Weights::calculate | ( | SCIP_VAR * | var | ) | const |
Definition at line 78 of file weights.cpp.
References assert(), var, varweight, vbinary, vcontinous, vimplint, and vinteger.
Field Documentation
◆ varweight
|
protected |
weight of a variable vertex
Definition at line 45 of file weights.h.
Referenced by calculate(), Weights(), and Weights().
◆ vbinary
|
protected |
weight of a binary variable vertex
Definition at line 46 of file weights.h.
Referenced by calculate(), Weights(), and Weights().
◆ vcontinous
|
protected |
weight of a continuous variable vertex
Definition at line 47 of file weights.h.
Referenced by calculate(), Weights(), and Weights().
◆ vinteger
|
protected |
weight of an integer variable vertex
Definition at line 48 of file weights.h.
Referenced by calculate(), Weights(), and Weights().
◆ vimplint
|
protected |
weight of an implicit integer variable vertex
Definition at line 49 of file weights.h.
Referenced by calculate(), Weights(), and Weights().
◆ consweight
|
protected |
weight of a constraint vertex
Definition at line 50 of file weights.h.
Referenced by calculate(), Weights(), and Weights().