debug erreur reconnu par le compilateur de Visual Studio
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1860 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
227c9866dc
commit
7b8b687bd4
4 changed files with 7 additions and 5 deletions
|
|
@ -61,14 +61,14 @@ public:
|
|||
unsigned int offset = n * k;
|
||||
|
||||
unsigned int j = 0;
|
||||
while (_solution[offset + j] && j < k) j++;
|
||||
while (j < k && _solution[offset + j]) j++;
|
||||
|
||||
if (j == k) // the block is complete, so the fitness decreases from one
|
||||
_neighbor.fitness(_solution.fitness() - 1);
|
||||
else {
|
||||
if ((_solution[_neighbor.index()] == 0) && (offset + j == _neighbor.index())) { // can the block be filled?
|
||||
j++; // next bit
|
||||
while (_solution[offset + j] && j < k) j++;
|
||||
while ( j < k && _solution[offset + j]) j++;
|
||||
|
||||
if (j == k) // the block can be filled, so the fitness increases from one
|
||||
_neighbor.fitness(_solution.fitness() + 1);
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ class moeoObjectiveVectorNormalizer
|
|||
* @param max_param worst vector is set to it
|
||||
* @return a scale to use with the normalizer
|
||||
*/
|
||||
static Scale make_scale_from_pop(eoPop<MOEOT> &_pop, Type &max_param=100){
|
||||
static Scale make_scale_from_pop(eoPop<MOEOT> &_pop, Type max_param=100){
|
||||
Scale res;
|
||||
if (_pop.empty()) {
|
||||
std::cout<<"makeScale in moeoObjectiveVEctorNormalizer.h: pop is empty"<<std::endl;
|
||||
|
|
|
|||
|
|
@ -60,7 +60,9 @@ public:
|
|||
// the variables are numbered from 1 to nbVar
|
||||
variables = new vector<int>[nbVar + 1];
|
||||
|
||||
int var[nbVar];
|
||||
//int var[nbVar];
|
||||
std::vector<int> var;
|
||||
var.resize(nbVar);
|
||||
unsigned i, j, ind;
|
||||
|
||||
// to selected nbLitteral different variables in the clauses
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ public:
|
|||
offset = i * k;
|
||||
|
||||
j = 0;
|
||||
while (_solution[offset + j] && j < k) j++;
|
||||
while (j < k && _solution[offset + j]) j++;
|
||||
|
||||
if (j == k)
|
||||
sum++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue