Skip to content

Commit

Permalink
fix in mou for num indivs to gen
Browse files Browse the repository at this point in the history
  • Loading branch information
jdub authored and jdub committed Jan 26, 2022
1 parent b18feee commit 435e255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/pestpp_common/MOEA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2409,7 +2409,7 @@ void MOEA::initialize()
}
save_populations(dp_archive, op_archive, "archive");


string opt_member;
if (constraints.get_use_chance())
{
Expand Down Expand Up @@ -2548,7 +2548,7 @@ ParameterEnsemble MOEA::generate_population()
//int total_new_members = pest_scenario.get_pestpp_options().get_mou_population_size();
int total_new_members = population_schedule.at(iter);
//add new members for any missing
total_new_members += (total_new_members - dp.shape().first);
//total_new_members += (total_new_members - dp.shape().first);
int new_members_per_gen = int(total_new_members / gen_types.size());
ParameterEnsemble new_pop(&pest_scenario, &rand_gen);
new_pop.set_trans_status(ParameterEnsemble::transStatus::NUM);
Expand Down

0 comments on commit 435e255

Please sign in to comment.