12 #ifndef DIGNEA_BPPINSTANCE_H
13 #define DIGNEA_BPPINSTANCE_H
55 inline int getCapacity()
const {
return this->capacity; }
57 inline void setCapacity(
int q) { this->capacity = q; }
Solution for a Instance Generation Problem used in the EIG. This is a solution for AbstractDomain.
Definition: AbstractInstance.h:30
Instance Bin-Packing Problem Solution. Class which represents the solution for the Instance Bin-Packi...
Definition: BPPInstance.h:28
bool operator==(const BPPInstance &other) const
Compares whether two solutions are equal.
Definition: BPPInstance.cpp:76
virtual void to_instance(std::ostream &os) const
Generates a BPPInstance file with .bpp extension from the instance information.
Definition: BPPInstance.cpp:155
vector< float > getFeatures() const override
Get the features.
Definition: BPPInstance.cpp:100
void setVariables(const vector< int > &vars) override
Sets the variables of the solution. Expected to be twice of number of vars since it stores the pairs ...
Definition: BPPInstance.cpp:86
json to_json() const override
Creates a JSON object with the information of the BPPInstance.
Definition: BPPInstance.cpp:113
BPPInstance & operator=(const BPPInstance ©)
Copies a solution using the assignment operator.
Definition: BPPInstance.cpp:45
int nVars
Definition: Solution.h:194
int nObjs
Definition: Solution.h:195