11 #ifndef DIGNEA_BPPDOMAIN_H
12 #define DIGNEA_BPPDOMAIN_H
17 #include <dignea/types/SolutionTypes.h>
18 #include <dignea/utilities/random/PseudoRandom.h>
36 const int &capacity = 100);
40 BPPDomain(
const string &pathToInstance) =
delete;
43 const int &capacity,
const int &minW,
const int &maxW);
49 vector<BPPInstance>
createSolutions(
const int &maxSolutions)
const override;
59 bool evaluateConstraints(
BPPInstance &solution)
const override {
65 string getName()
const override {
return "BPPDomain"; }
71 int getMaxWeight()
const {
return maxWeight; }
73 int getMinWeight()
const {
return minWeight; }
75 void setMaxWeight(
int maxWeight) { BPPDomain::maxWeight = maxWeight; }
77 void setMinWeight(
int minWeight) { BPPDomain::minWeight = minWeight; }
83 const int &maxInstances)
const;
92 void readData(
const string &path)
override{};
EIG Instance Generation Problem. Abstract Problem for the EIG. This problem will be used as a supercl...
Definition: AbstractDomain.h:28
Instance Generator for Bin-Packing Problem.
Definition: BPPDomain.h:31
float getLowerLimit(const int i) const override
Definition: BPPDomain.cpp:105
vector< BPPInstance > createSolutions(const int &maxSolutions) const override
Definition: BPPDomain.cpp:73
json to_json() const override
Creates a JSON object with the information of the Problem.
Definition: BPPDomain.cpp:211
float getUpperLimit(const int i) const override
Definition: BPPDomain.cpp:91
void beforeEvaluation(vector< BPPInstance > &) override
Definition: BPPDomain.cpp:150
void afterEvaluation(vector< BPPInstance > &) override
Method applied after evaluation the population of solutions.
Definition: BPPDomain.cpp:160
int getOptimizationDirection(const int i) const override
Definition: BPPDomain.cpp:136
void evaluate(BPPInstance &solution) const override
Definition: BPPDomain.cpp:47
BPPInstance createSolution() const override
Definition: BPPDomain.cpp:53
shared_ptr< BPP > genOptProblem(const BPPInstance &instance) const override
Creates a Optimisation Problem for the Configurations on the EIG In this case, BPP Problem.
Definition: BPPDomain.cpp:119
string getName() const override
Returns the name of the problem. This method must be implemented in the subclasses.
Definition: BPPDomain.h:65
Instance Bin-Packing Problem Solution. Class which represents the solution for the Instance Bin-Packi...
Definition: BPPInstance.h:28
int numberOfVars
Definition: Problem.h:155
int numberOfObjs
Definition: Problem.h:159