22 #include "BlisModel.h"
139 virtual void readParameters(
const int argnum,
const char *
const *arglist);
153 return(v0 < v1 ? v1*(v1 - 1)/2 + v0 : v0*(v0 - 1)/2 + v1);
CoinPackedVector * getSolution(const double *denseSol)
BlisParams * BlisPar()
Access parameters.
void setEntry(const boolParams key, const char *val)
char* is true(1) or false(0), not used
virtual void registerKnowledge()
Register knowledge.
Static load balancing scheme – root initialization (0) – spiral (1)
-1: disable, 0: default, 1: verbose.
virtual void readParameters(const int argnum, const char *const *arglist)
Read in Alps, Blis, Vrp parameters.
virtual ~VrpModel()
Destructor.
AlpsParams * AlpsPar()
Access Alps Parameters.
This data structure is to contain the packed form of an encodable knowledge.
std::vector< VrpVariable * > edges_
std::vector< VrpVariable * > getEdgeList()
void setModelData()
1) Set colMatrix_, varLB_, varUB_, conLB_, conUB, numCols_, numRows_ 2) Set objCoef_ and objSense_ 3)...
virtual void readInstance(const char *dateFile)
For parallel code, only the master calls this function.
Search strategy – best-first (0) – best-first-estimate (1) – breadth-first (2) – depth-first (3) – hy...
The pass to generate cuts for quick branching.
This class contains the solutions generated by the LP solver (either primal or dual.
void setEntry(const boolParams key, const char *val)
char* is true(1) or false(0), not used
void CoinSeedRandom(int iseed)
Set the seed for the random number generator.
This class contains a vrp solution.
AlpsReturnStatus encodeVrp(AlpsEncoded *encoded) const
Pack Vrp portion of the model into an encoded object.
VrpModel()
Default construtor.
virtual BlisSolution * userFeasibleSolution(const double *solution, bool &userFeasible)
User's criteria for a feasible solution.
AlpsReturnStatus decodeVrp(AlpsEncoded &encoded)
Unpack Vrp portion of the model from an encoded object.
Limit the max number cuts applied at a node.
virtual void decodeToSelf(AlpsEncoded &)
The method that decodes the model from an encoded object.
int index(int v0, int v1)
int computeCost(int v0, int v1)
virtual AlpsEncoded * encode() const
The method that encodes the model into an encoded object.
void createNet(CoinPackedVector *vec)