#include <BlisParams.h>
Public Types | |
cutRampUp | |
Generate cuts during rampup. | |
presolve | |
Presolve or not. | |
shareConstraints | |
Share constraints Default: false. | |
shareVariables | |
Share constraints Default: false. | |
sharePseudocostRampUp | |
Share pseudocost during ramp up. | |
sharePseudocostSearch | |
Share pseudocost during search Default: false. | |
endOfChrParams | |
branchStrategy | |
Branching strategy. | |
branchStrategyRampUp | |
cutStrategy | |
Cut generators control. | |
cutGenerationFrequency | |
All constraint generators. | |
cutPass | |
quickCutPass | |
The pass to generate cuts. | |
cutCliqueStrategy | |
The pass to generate cuts for quick branching. | |
cutGomoryStrategy | |
cutFlowCoverStrategy | |
cutKnapsackStrategy | |
cutMirStrategy | |
cutOddHoleStrategy | |
cutProbingStrategy | |
cutTwoMirStrategy | |
cutCliqueFreq | |
cutGomoryFreq | |
cutFlowCoverFreq | |
cutKnapsackFreq | |
cutMirFreq | |
cutOddHoleFreq | |
cutProbingFreq | |
cutTwoMirFreq | |
difference | |
-1 auto, 0, no, any integer frequency | |
heurStrategy | |
Heuristics control. | |
heurCallFrequency | |
All heuristics. | |
heurRoundStrategy | |
heurRoundFreq | |
lookAhead | |
The look ahead of pseudocost. | |
pseudoRelibility | |
The relibility of pseudocost. | |
sharePcostDepth | |
Maximum tree depth of sharing pseudocost. | |
sharePcostFrequency | |
Frequency of sharing pseudocost. | |
strongCandSize | |
The number of candidate used in strong branching. | |
endOfIntParams | |
cutFactor | |
Limit the max number cuts applied at a node. | |
cutoff | |
Cutoff any nodes whose objective value is higher than it. | |
cutoffInc | |
The value added to relaxation value when deciding fathom. | |
denseConFactor | |
Dense constraint factor. | |
integerTol | |
Tolerance to treat as an integer. | |
objSense | |
Objective sense: min = 1.0, max = -1.0. | |
optimalRelGap | |
If the relative gap between best feasible and best relaxed fall into this gap, search stops. | |
optimalAbsGap | |
If the absolute gap between best feasible and best relaxed fall into this gap, search stops. | |
pseudoWeight | |
Weight used to calculate pseudocost. | |
scaleConFactor | |
Scaling indicator of a constraint. | |
tailOff | |
Tail off. | |
endOfDblParams | |
strDummy | |
endOfStrParams | |
strArrayDummy | |
endOfStrArrayParams | |
enum | chrParams { cutRampUp, presolve, shareConstraints, shareVariables, sharePseudocostRampUp, sharePseudocostSearch, endOfChrParams } |
Character parameters. More... | |
enum | intParams { branchStrategy, branchStrategyRampUp, cutStrategy, cutGenerationFrequency, cutPass, quickCutPass, cutCliqueStrategy, cutGomoryStrategy, cutFlowCoverStrategy, cutKnapsackStrategy, cutMirStrategy, cutOddHoleStrategy, cutProbingStrategy, cutTwoMirStrategy, cutCliqueFreq, cutGomoryFreq, cutFlowCoverFreq, cutKnapsackFreq, cutMirFreq, cutOddHoleFreq, cutProbingFreq, cutTwoMirFreq, difference, heurStrategy, heurCallFrequency, heurRoundStrategy, heurRoundFreq, lookAhead, pseudoRelibility, sharePcostDepth, sharePcostFrequency, strongCandSize, endOfIntParams } |
Integer paramters. More... | |
enum | dblParams { cutFactor, cutoff, cutoffInc, denseConFactor, integerTol, objSense, optimalRelGap, optimalAbsGap, pseudoWeight, scaleConFactor, tailOff, endOfDblParams } |
Double parameters. More... | |
enum | strParams { strDummy, endOfStrParams } |
String parameters. More... | |
enum | strArrayParams { strArrayDummy, endOfStrArrayParams } |
There are no string array parameters. More... | |
Public Member Functions | |
virtual void | createKeywordList () |
Method for creating the list of keyword looked for in the parameter file. | |
virtual void | setDefaultEntries () |
Method for setting the default values for the parameters. | |
void | setEntry (const chrParams key, const char *val) |
char* is true(1) or false(0), not used | |
void | setEntry (const chrParams key, const char val) |
char is true(1) or false(0), not used | |
void | setEntry (const chrParams key, const bool val) |
This method is the one that ever been used. | |
void | setEntry (const intParams key, const char *val) |
void | setEntry (const intParams key, const int val) |
void | setEntry (const dblParams key, const char *val) |
void | setEntry (const dblParams key, const double val) |
void | setEntry (const strParams key, const char *val) |
void | setEntry (const strArrayParams key, const char *val) |
Constructors. | |
BlisParams () | |
The default constructor creates a parameter set with from the template argument structure. | |
Query methods | |
The members of the parameter set can be queried for using the overloaded entry() method. Using the example in the class documentation the user can get a parameter with the "<code>param.entry(USER_par::parameter_name)</code>" expression. | |
bool | entry (const chrParams key) const |
int | entry (const intParams key) const |
double | entry (const dblParams key) const |
const std::string & | entry (const strParams key) const |
const std::vector< std::string > & | entry (const strArrayParams key) const |
Packing/unpacking methods | |
void | pack (AlpsEncoded &buf) |
Pack the parameter set into the buffer (AlpsEncoded is used as buffer Here). | |
void | unpack (AlpsEncoded &buf) |
Unpack the parameter set from the buffer. |
Definition at line 35 of file BlisParams.h.
Character parameters.
All of these variable are used as booleans (ture = 1, false = 0).
Definition at line 39 of file BlisParams.h.
Integer paramters.
Definition at line 62 of file BlisParams.h.
Double parameters.
Definition at line 133 of file BlisParams.h.
BlisParams::BlisParams | ( | ) | [inline] |
The default constructor creates a parameter set with from the template argument structure.
The keyword list is created and the defaults are set.
Definition at line 193 of file BlisParams.h.
References createKeywordList(), and setDefaultEntries().
virtual void BlisParams::createKeywordList | ( | ) | [virtual] |
Method for creating the list of keyword looked for in the parameter file.
Referenced by BlisParams().
virtual void BlisParams::setDefaultEntries | ( | ) | [virtual] |
bool BlisParams::entry | ( | const chrParams | key | ) | const [inline] |
int BlisParams::entry | ( | const intParams | key | ) | const [inline] |
Definition at line 238 of file BlisParams.h.
double BlisParams::entry | ( | const dblParams | key | ) | const [inline] |
Definition at line 240 of file BlisParams.h.
const std::string& BlisParams::entry | ( | const strParams | key | ) | const [inline] |
Definition at line 243 of file BlisParams.h.
const std::vector<std::string>& BlisParams::entry | ( | const strArrayParams | key | ) | const [inline] |
Definition at line 246 of file BlisParams.h.
void BlisParams::setEntry | ( | const chrParams | key, | |
const char * | val | |||
) | [inline] |
char* is true(1) or false(0), not used
Definition at line 251 of file BlisParams.h.
Referenced by VrpModel::VrpModel().
void BlisParams::setEntry | ( | const chrParams | key, | |
const char | val | |||
) | [inline] |
void BlisParams::setEntry | ( | const chrParams | key, | |
const bool | val | |||
) | [inline] |
void BlisParams::setEntry | ( | const intParams | key, | |
const char * | val | |||
) | [inline] |
Definition at line 260 of file BlisParams.h.
void BlisParams::setEntry | ( | const intParams | key, | |
const int | val | |||
) | [inline] |
Definition at line 263 of file BlisParams.h.
void BlisParams::setEntry | ( | const dblParams | key, | |
const char * | val | |||
) | [inline] |
Definition at line 266 of file BlisParams.h.
void BlisParams::setEntry | ( | const dblParams | key, | |
const double | val | |||
) | [inline] |
Definition at line 269 of file BlisParams.h.
void BlisParams::setEntry | ( | const strParams | key, | |
const char * | val | |||
) | [inline] |
Definition at line 272 of file BlisParams.h.
void BlisParams::setEntry | ( | const strArrayParams | key, | |
const char * | val | |||
) | [inline] |
Definition at line 275 of file BlisParams.h.
void BlisParams::pack | ( | AlpsEncoded & | buf | ) | [inline] |
Pack the parameter set into the buffer (AlpsEncoded is used as buffer Here).
Definition at line 284 of file BlisParams.h.
References endOfChrParams, endOfDblParams, endOfIntParams, endOfStrArrayParams, and endOfStrParams.
void BlisParams::unpack | ( | AlpsEncoded & | buf | ) | [inline] |
Unpack the parameter set from the buffer.
Definition at line 297 of file BlisParams.h.
References endOfChrParams, endOfDblParams, endOfIntParams, endOfStrArrayParams, and endOfStrParams.