Skip to content

Commit

Permalink
review 3
Browse files Browse the repository at this point in the history
  • Loading branch information
darioizzo committed Apr 22, 2022
1 parent 9683747 commit 9761494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/problems/unconstrain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ vector_double unconstrain::batch_fitness(const vector_double & xs) const
vector_double z; // will be resized in penalize if necessary.
for (vector_double::size_type i = 0; i < n_dvs; ++ i)
{
std::copy(original_fitness.data() + i * nobj, original_fitness.data() + (i + 1) * nobj, y.begin());
std::copy(original_fitness.data() + i * nobj, original_fitness.data() + (i + 1) * nobj, y.data());
penalize(y, z);
std::copy(z.begin(), z.begin() + nobj, retval.begin() + i * nobj);
std::copy(z.data(), z.data() + nobj, retval.data() + i * nobj);
}
return retval;
}
Expand Down

0 comments on commit 9761494

Please sign in to comment.