dignea  1.0.0
Diverse Instance Generator with Novelty Search and Evolutionary Algorithms
KPNR.h
Go to the documentation of this file.
1 
11 #ifndef __DIGNEA_KPNR_H__
12 #define __DIGNEA_KPNR_H__
13 
14 #include <dignea/utilities/random/ParallelPRNG.h>
15 
16 #include "KP.h"
17 
23 class KPNR : public KP {
24  public:
25  KPNR();
26 
27  virtual ~KPNR();
28 
29  explicit KPNR(const int &numberOfVars);
30 
31  KPNR(const string &pathToInstance);
32 
33  KPNR(const int &numberOfVars, const int &capacity,
34  const vector<int> &weights, const vector<int> &profits);
35 
36  // Generacion de una instancia del KP de manera aleatoria con los datos
37  // proporcionadoss
38  KPNR(const int &numberOfVars, const int &lowerWeight,
39  const int &upperWeight, const int &lowerProfit,
40  const int &upperProfit);
41 
42  void evaluate(BoolFloatSolution &solution) const override;
43 };
44 
45 #endif // __DIGNEA_KPNR_H__
Knapsack Problem without repairing operator.
Definition: KPNR.h:23
void evaluate(BoolFloatSolution &solution) const override
Definition: KPNR.cpp:24
Class representing a Knapsack Problem.
Definition: KP.h:28
int numberOfVars
Definition: Problem.h:155
Class to represent a solution to the optimization problems in the tool.
Definition: Solution.h:25