diff --git a/docs/population_8hpp_source.html b/docs/population_8hpp_source.html
index 319f93f..aac379c 100644
--- a/docs/population_8hpp_source.html
+++ b/docs/population_8hpp_source.html
@@ -253,428 +253,432 @@
- 236 this->numbers_at_age[i_age_year] = this->numbers_at_age[i_agem1_yearm1] *
-
- 238 FIMS_LOG <<
" z at i_agem1_yearm1 = " << i_agem1_yearm1 <<
" is "
-
-
- 241 if (age == (this->nages - 1)) {
- 242 this->numbers_at_age[i_age_year] =
- 243 this->numbers_at_age[i_age_year] +
- 244 this->numbers_at_age[i_agem1_yearm1 + 1] *
- 245 (fims::exp(-this->
mortality_Z[i_agem1_yearm1 + 1]));
-
-
-
-
-
-
-
-
- 261 (fims::exp(-this->M[i_agem1_yearm1]));
- 262 FIMS_LOG <<
"survival rate at index " << i_agem1_yearm1 <<
" is "
- 263 << fims::exp(-(this->M[i_agem1_yearm1])) << std::endl;
-
- 265 if (age == (this->nages - 1)) {
-
-
-
- 269 (fims::exp(-this->M[i_agem1_yearm1 + 1]));
-
-
-
-
-
- 282 this->numbers_at_age[i_age_year] *
growth->evaluate(
ages[age]);
-
-
- 285 <<
" biomass inputs----- +++\n";
-
-
-
-
- 298 this->
growth->evaluate(ages[age]);
-
-
-
- 309 this->spawning_biomass[year] +=
- 310 this->proportion_female * this->numbers_at_age[i_age_year] *
- 311 this->proportion_mature_at_age[i_age_year] *
growth->evaluate(
ages[age]);
- 312 FIMS_LOG <<
" proportion female " << this->proportion_female <<
" "
- 313 <<
" mature age " << age <<
" is "
- 314 << this->proportion_mature_at_age[i_age_year] <<
" "
- 315 <<
" numbers at age " << this->numbers_at_age[i_age_year] <<
" "
- 316 <<
" growth " <<
growth->evaluate(
ages[age]) <<
" "
- 317 <<
" spawning biomass " << this->spawning_biomass[year] <<
" "
- 318 <<
" spawning biomass inputs----- +++\n";
-
-
-
-
- 331 this->unfished_spawning_biomass[year] +=
-
- 333 this->proportion_mature_at_age[i_age_year] *
- 334 this->
growth->evaluate(ages[age]);
-
-
-
- 343 std::vector<Type> numbers_spr(this->nages, 1.0);
-
- 345 phi_0 += numbers_spr[0] * this->proportion_female *
- 346 this->proportion_mature_at_age[0] *
- 347 this->
growth->evaluate(ages[0]);
- 348 for (
size_t a = 1; a < (this->nages - 1); a++) {
- 349 numbers_spr[a] = numbers_spr[a - 1] * fims::exp(-this->M[a]);
- 350 phi_0 += numbers_spr[a] * this->proportion_female *
- 351 this->proportion_mature_at_age[a] *
- 352 this->
growth->evaluate(ages[a]);
-
-
- 355 numbers_spr[this->nages - 1] =
- 356 (numbers_spr[
nages - 2] * fims::exp(-this->M[
nages - 2])) /
- 357 (1 - fims::exp(-this->M[this->nages - 1]));
- 358 phi_0 += numbers_spr[this->nages - 1] * this->proportion_female *
- 359 this->proportion_mature_at_age[this->nages - 1] *
- 360 this->
growth->evaluate(ages[this->nages - 1]);
-
-
-
-
- 371 FIMS_LOG <<
"recruitment 1" << std::endl;
-
- 373 FIMS_LOG <<
"recruitment 2" << std::endl;
- 374 FIMS_LOG <<
"phi0 = " << phi0 << std::endl;
- 375 FIMS_LOG <<
"spawning biomass = " << this->spawning_biomass[year]
-
-
+ 236 this->numbers_at_age[i_age_year] =
+ 237 this->numbers_at_age[i_agem1_yearm1] *
+
+ 239 FIMS_LOG <<
" z at i_agem1_yearm1 = " << i_agem1_yearm1 <<
" is "
+
+
+ 242 if (age == (this->nages - 1)) {
+ 243 this->numbers_at_age[i_age_year] =
+ 244 this->numbers_at_age[i_age_year] +
+ 245 this->numbers_at_age[i_agem1_yearm1 + 1] *
+ 246 (fims::exp(-this->
mortality_Z[i_agem1_yearm1 + 1]));
+
+
+
+
+ 258 size_t i_agem1_yearm1,
size_t age) {
+
+
+
+ 262 (fims::exp(-this->M[i_agem1_yearm1]));
+ 263 FIMS_LOG <<
"survival rate at index " << i_agem1_yearm1 <<
" is "
+ 264 << fims::exp(-(this->M[i_agem1_yearm1])) << std::endl;
+
+ 266 if (age == (this->nages - 1)) {
+
+
+
+ 270 (fims::exp(-this->M[i_agem1_yearm1 + 1]));
+
+
+
+
+
+ 283 this->numbers_at_age[i_age_year] *
growth->evaluate(
ages[age]);
+
+
+ 286 <<
" biomass inputs----- +++\n";
+
+
+
+
+ 299 this->
growth->evaluate(ages[age]);
+
+
+
+ 310 this->spawning_biomass[year] += this->proportion_female *
+ 311 this->numbers_at_age[i_age_year] *
+ 312 this->proportion_mature_at_age[i_age_year] *
+
+ 314 FIMS_LOG <<
" proportion female " << this->proportion_female <<
" "
+ 315 <<
" mature age " << age <<
" is "
+ 316 << this->proportion_mature_at_age[i_age_year] <<
" "
+ 317 <<
" numbers at age " << this->numbers_at_age[i_age_year] <<
" "
+ 318 <<
" growth " <<
growth->evaluate(
ages[age]) <<
" "
+ 319 <<
" spawning biomass " << this->spawning_biomass[year] <<
" "
+ 320 <<
" spawning biomass inputs----- +++\n";
+
+
+
+
+ 333 this->unfished_spawning_biomass[year] +=
+
+ 335 this->proportion_mature_at_age[i_age_year] *
+ 336 this->
growth->evaluate(ages[age]);
+
+
+
+ 345 std::vector<Type> numbers_spr(this->nages, 1.0);
+
+ 347 phi_0 += numbers_spr[0] * this->proportion_female *
+ 348 this->proportion_mature_at_age[0] *
+ 349 this->
growth->evaluate(ages[0]);
+ 350 for (
size_t a = 1; a < (this->nages - 1); a++) {
+ 351 numbers_spr[a] = numbers_spr[a - 1] * fims::exp(-this->M[a]);
+ 352 phi_0 += numbers_spr[a] * this->proportion_female *
+ 353 this->proportion_mature_at_age[a] *
+ 354 this->
growth->evaluate(ages[a]);
+
+
+ 357 numbers_spr[this->nages - 1] =
+ 358 (numbers_spr[
nages - 2] * fims::exp(-this->M[
nages - 2])) /
+ 359 (1 - fims::exp(-this->M[this->nages - 1]));
+ 360 phi_0 += numbers_spr[this->nages - 1] * this->proportion_female *
+ 361 this->proportion_mature_at_age[this->nages - 1] *
+ 362 this->
growth->evaluate(ages[this->nages - 1]);
+
+
+
+
+ 373 FIMS_LOG <<
"recruitment 1" << std::endl;
+
+ 375 FIMS_LOG <<
"recruitment 2" << std::endl;
+ 376 FIMS_LOG <<
"phi0 = " << phi0 << std::endl;
+ 377 FIMS_LOG <<
"spawning biomass = " << this->spawning_biomass[year]
-
- 380 << this->
recruitment->evaluate(this->spawning_biomass[year - 1],
-
-
- 383 this->numbers_at_age[i_age_year] =
- 384 this->
recruitment->evaluate(this->spawning_biomass[year - 1], phi0) *
-
- 386 this->expected_recruitment[year] = this->numbers_at_age[i_age_year];
- 387 FIMS_LOG <<
" numbers at age at indexya " << i_age_year <<
" is "
- 388 << this->numbers_at_age[i_age_year] << std::endl;
-
-
-
- 398 for (
size_t fleet_ = 0; fleet_ < this->
nfleets; fleet_++) {
- 399 if (this->
fleets[fleet_]->is_survey ==
false) {
- 400 size_t index_yf = year * this->nfleets +
-
- 402 size_t i_age_year = year * this->nages + age;
-
- 404 FIMS_LOG <<
" fleet " << fleet_ <<
" year " << year <<
" age " << age
-
- 406 this->expected_catch[index_yf] +=
- 407 this->
fleets[fleet_]->catch_weight_at_age[i_age_year];
-
- 409 FIMS_LOG <<
"expected catch: " << this->expected_catch[index_yf]
-
- 411 FIMS_LOG <<
"----------------------------------------------"
+
+
+
+ 382 << this->
recruitment->evaluate(this->spawning_biomass[year - 1],
+
+
+ 385 this->numbers_at_age[i_age_year] =
+ 386 this->
recruitment->evaluate(this->spawning_biomass[year - 1], phi0) *
+
+ 388 this->expected_recruitment[year] = this->numbers_at_age[i_age_year];
+ 389 FIMS_LOG <<
" numbers at age at indexya " << i_age_year <<
" is "
+ 390 << this->numbers_at_age[i_age_year] << std::endl;
+
+
+
+ 400 for (
size_t fleet_ = 0; fleet_ < this->
nfleets; fleet_++) {
+ 401 if (this->
fleets[fleet_]->is_survey ==
false) {
+ 402 size_t index_yf = year * this->nfleets +
+
+ 404 size_t i_age_year = year * this->nages + age;
+
+ 406 FIMS_LOG <<
" fleet " << fleet_ <<
" year " << year <<
" age " << age
+
+ 408 this->expected_catch[index_yf] +=
+ 409 this->
fleets[fleet_]->catch_weight_at_age[i_age_year];
+
+ 411 FIMS_LOG <<
"expected catch: " << this->expected_catch[index_yf]
-
- 414 fleets[fleet_]->expected_catch[year] +=
- 415 this->
fleets[fleet_]->catch_weight_at_age[i_age_year];
-
-
-
-
-
- 428 for (
size_t fleet_ = 0; fleet_ < this->
nfleets; fleet_++) {
-
-
- 431 if (this->
fleets[fleet_]->is_survey ==
false) {
- 432 index_ = this->
fleets[fleet_]->catch_numbers_at_age[i_age_year] *
-
-
- 435 FIMS_LOG <<
"fleet " << fleet_ <<
" is a survey" << std::endl;
- 436 index_ = this->
fleets[fleet_]->q *
- 437 this->
fleets[fleet_]->selectivity->evaluate(
ages[age]) *
- 438 this->numbers_at_age[i_age_year] *
-
-
- 441 fleets[fleet_]->expected_index[year] += index_;
- 442 FIMS_LOG <<
" expected index in year " << year <<
" is "
- 443 <<
fleets[fleet_]->expected_index[year] << std::endl;
-
-
-
-
- 457 for (
size_t fleet_ = 0; fleet_ < this->
nfleets; fleet_++) {
-
-
-
-
- 462 if (this->
fleets[fleet_]->is_survey ==
false) {
- 463 catch_ = (this->
fleets[fleet_]->Fmort[year] *
- 464 this->
fleets[fleet_]->selectivity->evaluate(
ages[age])) /
- 465 this->
mortality_Z[i_age_year] * this->numbers_at_age[i_age_year] *
-
-
- 468 catch_ = (this->
fleets[fleet_]->selectivity->evaluate(
ages[age])) *
- 469 this->numbers_at_age[i_age_year];
-
- 471 FIMS_LOG <<
" F " << fleet_ <<
" " << this->
fleets[fleet_]->Fmort[year]
-
-
- 474 << this->
fleets[fleet_]->selectivity->evaluate(
ages[age])
+ 413 FIMS_LOG <<
"----------------------------------------------"
+
+
+ 416 fleets[fleet_]->expected_catch[year] +=
+ 417 this->
fleets[fleet_]->catch_weight_at_age[i_age_year];
+
+
+
+
+
+ 430 for (
size_t fleet_ = 0; fleet_ < this->
nfleets; fleet_++) {
+
+
+ 433 if (this->
fleets[fleet_]->is_survey ==
false) {
+ 434 index_ = this->
fleets[fleet_]->catch_numbers_at_age[i_age_year] *
+
+
+ 437 FIMS_LOG <<
"fleet " << fleet_ <<
" is a survey" << std::endl;
+ 438 index_ = this->
fleets[fleet_]->q *
+ 439 this->
fleets[fleet_]->selectivity->evaluate(
ages[age]) *
+ 440 this->numbers_at_age[i_age_year] *
+
+
+ 443 fleets[fleet_]->expected_index[year] += index_;
+ 444 FIMS_LOG <<
" expected index in year " << year <<
" is "
+ 445 <<
fleets[fleet_]->expected_index[year] << std::endl;
+
+
+
+
+ 459 for (
size_t fleet_ = 0; fleet_ < this->
nfleets; fleet_++) {
+
+
+
+
+ 464 if (this->
fleets[fleet_]->is_survey ==
false) {
+ 465 catch_ = (this->
fleets[fleet_]->Fmort[year] *
+ 466 this->
fleets[fleet_]->selectivity->evaluate(
ages[age])) /
+
+ 468 this->numbers_at_age[i_age_year] *
+
+
+ 471 catch_ = (this->
fleets[fleet_]->selectivity->evaluate(
ages[age])) *
+ 472 this->numbers_at_age[i_age_year];
+
+ 474 FIMS_LOG <<
" F " << fleet_ <<
" " << this->
fleets[fleet_]->Fmort[year]
- 476 FIMS_LOG <<
" catch " << catch_ << std::endl;
-
-
-
- 480 this->
fleets[fleet_]->catch_numbers_at_age[i_age_year] += catch_;
-
-
-
-
- 492 int i_age_year = year * this->nages + age;
- 493 for (
size_t fleet_ = 0; fleet_ < this->
nfleets; fleet_++) {
- 494 FIMS_LOG <<
" fleet " << fleet_ << std::endl;
-
- 496 << this->
fleets[fleet_]->catch_numbers_at_age[year] << std::endl;
- 497 FIMS_LOG <<
" weight " << this->
growth->evaluate(ages[age]) << std::endl;
- 498 this->
fleets[fleet_]->catch_weight_at_age[i_age_year] =
- 499 this->
fleets[fleet_]->catch_numbers_at_age[i_age_year] *
- 500 this->
growth->evaluate(ages[age]);
-
- 502 << this->
fleets[fleet_]->catch_weight_at_age[i_age_year]
-
-
-
-
-
-
-
- 517 FIMS_LOG <<
" age " << age << std::endl;
- 518 FIMS_LOG <<
" ages size " << this->ages.size() << std::endl;
- 519 FIMS_LOG <<
" i_age_year " << i_age_year << std::endl;
- 520 FIMS_LOG <<
"p mature" << this->proportion_mature_at_age[i_age_year]
-
- 522 FIMS_LOG << this->ages[age] << std::endl;
- 523 this->proportion_mature_at_age[i_age_year] =
- 524 this->
maturity->evaluate(ages[age]);
-
- 526 FIMS_LOG <<
"p mature set to " << this->proportion_mature_at_age[i_age_year]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 558 for (
size_t y = 0; y <= this->
nyears; y++) {
- 559 for (
size_t a = 0; a < this->
nages; a++) {
-
-
-
-
- 564 size_t i_age_year = y * this->nages + a;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 625 this->expected_recruitment[i_age_year] = this->numbers_at_age[i_age_year];
-
-
-
-
-
- 631 FIMS_LOG <<
"Recruitment: " << std::endl;
-
-
-
-
-
- 637 size_t i_agem1_yearm1 = (y - 1) *
nages + (a - 1);
-
-
-
-
-
-
- 644 FIMS_LOG <<
"index ya: " << i_age_year << std::endl;
-
-
-
-
-
-
-
-
-
-
-
- 656 FIMS_LOG << i_age_year << std::endl;
-
-
-
- 660 FIMS_LOG <<
"year " << y <<
" and age " << a << std::endl;
-
-
-
-
-
-
- 667 for (
size_t i = 0; i <
nyears; i++) {
- 668 for (
size_t j = 0; j <
nages; j++) {
-
-
-
-
-
-
- 675 for (
size_t fleet_ = 0; fleet_ < this->
nfleets; fleet_++) {
- 676 FIMS_LOG <<
"Fleet " << fleet_ + 1 <<
"\n";
- 677 for (
size_t i = 0; i <
nyears; i++) {
- 678 for (
size_t j = 0; j <
nages; j++) {
-
-
-
-
-
-
-
-
- 687 template <
class Type>
-
-
-
-
-
+
+ 477 << this->
fleets[fleet_]->selectivity->evaluate(
ages[age])
+
+ 479 FIMS_LOG <<
" catch " << catch_ << std::endl;
+
+
+
+ 483 this->
fleets[fleet_]->catch_numbers_at_age[i_age_year] += catch_;
+
+
+
+
+ 495 int i_age_year = year * this->nages + age;
+ 496 for (
size_t fleet_ = 0; fleet_ < this->
nfleets; fleet_++) {
+ 497 FIMS_LOG <<
" fleet " << fleet_ << std::endl;
+
+ 499 << this->
fleets[fleet_]->catch_numbers_at_age[year] << std::endl;
+ 500 FIMS_LOG <<
" weight " << this->
growth->evaluate(ages[age]) << std::endl;
+ 501 this->
fleets[fleet_]->catch_weight_at_age[i_age_year] =
+ 502 this->
fleets[fleet_]->catch_numbers_at_age[i_age_year] *
+ 503 this->
growth->evaluate(ages[age]);
+
+ 505 << this->
fleets[fleet_]->catch_weight_at_age[i_age_year]
+
+
+
+
+
+
+
+ 520 FIMS_LOG <<
" age " << age << std::endl;
+ 521 FIMS_LOG <<
" ages size " << this->ages.size() << std::endl;
+ 522 FIMS_LOG <<
" i_age_year " << i_age_year << std::endl;
+ 523 FIMS_LOG <<
"p mature" << this->proportion_mature_at_age[i_age_year]
+
+ 525 FIMS_LOG << this->ages[age] << std::endl;
+ 526 this->proportion_mature_at_age[i_age_year] =
+ 527 this->
maturity->evaluate(ages[age]);
+
+ 529 FIMS_LOG <<
"p mature set to " << this->proportion_mature_at_age[i_age_year]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 561 for (
size_t y = 0; y <= this->
nyears; y++) {
+ 562 for (
size_t a = 0; a < this->
nages; a++) {
+
+
+
+
+ 567 size_t i_age_year = y * this->nages + a;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 628 this->expected_recruitment[i_age_year] =
+ 629 this->numbers_at_age[i_age_year];
+
+
+
+
+
+ 635 FIMS_LOG <<
"Recruitment: " << std::endl;
+
+
+
+
+
+ 641 size_t i_agem1_yearm1 = (y - 1) *
nages + (a - 1);
+
+
+
+
+
+
+ 648 FIMS_LOG <<
"index ya: " << i_age_year << std::endl;
+
+
+
+
+
+
+
+
+
+
+
+ 660 FIMS_LOG << i_age_year << std::endl;
+
+
+
+ 664 FIMS_LOG <<
"year " << y <<
" and age " << a << std::endl;
+
+
+
+
+
+
+ 671 for (
size_t i = 0; i <
nyears; i++) {
+ 672 for (
size_t j = 0; j <
nages; j++) {
+
+
+
+
+
+
+ 679 for (
size_t fleet_ = 0; fleet_ < this->
nfleets; fleet_++) {
+ 680 FIMS_LOG <<
"Fleet " << fleet_ + 1 <<
"\n";
+ 681 for (
size_t i = 0; i <
nyears; i++) {
+ 682 for (
size_t j = 0; j <
nages; j++) {
+
+
+
+
+
+
+
+
+ 691 template <
class Type>
+
+
+
+
+
std::ofstream FIMS_LOG("fims.log")
FIMSObject struct that defines member types and returns the unique id.
Definition: model_object.hpp:25
Population class. Contains subpopulations that are divided into generic partitions (eg....
Definition: population.hpp:36
-void CalculateUnfishedNumbersAA(size_t i_age_year, size_t i_agem1_yearm1, size_t age)
Calculates unfished numbers at age at year and age specific indices.
Definition: population.hpp:256
+void CalculateUnfishedNumbersAA(size_t i_age_year, size_t i_agem1_yearm1, size_t age)
Calculates unfished numbers at age at year and age specific indices.
Definition: population.hpp:257
std::shared_ptr< fims::MaturityBase< Type > > maturity
Definition: population.hpp:100
std::vector< Type > expected_recruitment
Definition: population.hpp:86
-void CalculateCatchWeightAA(size_t year, size_t age)
Calculates expected catch weight at age for each fleet for a given year and age.
Definition: population.hpp:491
-void Evaluate()
Executes the population loop.
Definition: population.hpp:534
+void CalculateCatchWeightAA(size_t year, size_t age)
Calculates expected catch weight at age for each fleet for a given year and age.
Definition: population.hpp:494
+void Evaluate()
Executes the population loop.
Definition: population.hpp:537
void CalculateNumbersAA(size_t i_age_year, size_t i_agem1_yearm1, size_t age)
Calculates numbers at age at year and age specific indices.
Definition: population.hpp:233
-void CalculateIndex(size_t i_age_year, size_t year, size_t age)
Adds to the expected population indices by fleet.
Definition: population.hpp:427
+void CalculateIndex(size_t i_age_year, size_t year, size_t age)
Adds to the expected population indices by fleet.
Definition: population.hpp:429
std::vector< Type > weight_at_age
Definition: population.hpp:67
std::shared_ptr< fims::RecruitmentBase< Type > > recruitment
Definition: population.hpp:90
std::vector< Type > M
Definition: population.hpp:56
-void CalculateCatchNumbersAA(size_t i_age_year, size_t year, size_t age)
Calculates catch in numbers at age for each fleet for a given year and age, then adds the value to th...
Definition: population.hpp:456
+void CalculateCatchNumbersAA(size_t i_age_year, size_t year, size_t age)
Calculates catch in numbers at age for each fleet for a given year and age, then adds the value to th...
Definition: population.hpp:458
std::vector< double > ages
Definition: population.hpp:58
size_t nages
Definition: population.hpp:43
int maturity_id
Definition: population.hpp:98
const Type proportion_female
Definition: population.hpp:47
std::vector< Type > unfished_spawning_biomass
Definition: population.hpp:79
-void CalculateCatch(size_t year, size_t age)
Adds to exiting expected total catch by fleet in weight.
Definition: population.hpp:397
+void CalculateCatch(size_t year, size_t age)
Adds to exiting expected total catch by fleet in weight.
Definition: population.hpp:399
std::vector< Type > biomass
Definition: population.hpp:75
std::vector< std::shared_ptr< fims::Fleet< Type > > > fleets
Definition: population.hpp:105
int growth_id
Definition: population.hpp:93
std::vector< Type > proportion_mature_at_age
Definition: population.hpp:81
-void CalculateRecruitment(size_t i_age_year, size_t year)
Calculates expected recruitment for a given year.
Definition: population.hpp:370
+void CalculateRecruitment(size_t i_age_year, size_t year)
Calculates expected recruitment for a given year.
Definition: population.hpp:372
std::vector< Type > log_init_naa
Definition: population.hpp:52
size_t nyears
Definition: population.hpp:41
ParameterVector log_M
Definition: population.hpp:53
ParameterVector mortality_F
Definition: population.hpp:60
std::shared_ptr< fims::GrowthBase< Type > > growth
Definition: population.hpp:95
void CalculateInitialNumbersAA(size_t i_age_year, size_t a)
Calculates initial numbers at age for index and age.
Definition: population.hpp:196
-void CalculateMaturityAA(size_t i_age_year, size_t age)
Calculates expected proportion of individuals mature at a selected ageage.
Definition: population.hpp:514
+void CalculateMaturityAA(size_t i_age_year, size_t age)
Calculates expected proportion of individuals mature at a selected ageage.
Definition: population.hpp:517
void Initialize(int nyears, int nseasons, int nages)
Initialize values. Called once at the start of model run.
Definition: population.hpp:123
size_t nseasons
Definition: population.hpp:42
std::vector< double > years
Definition: population.hpp:59
std::vector< Type > numbers_at_age
Definition: population.hpp:69
void Prepare()
Prepare to run the population loop. Called at each model iteration, and used to zero out derived quan...
Definition: population.hpp:154
-void CalculateUnfishedSpawningBiomass(size_t i_age_year, size_t year, size_t age)
Adds to existing yearly unfished spawning biomass estimates the biomass for a specified year and age.
Definition: population.hpp:329
+void CalculateUnfishedSpawningBiomass(size_t i_age_year, size_t year, size_t age)
Adds to existing yearly unfished spawning biomass estimates the biomass for a specified year and age.
Definition: population.hpp:331
std::vector< Type > unfished_biomass
Definition: population.hpp:77
static uint32_t id_g
Definition: population.hpp:40
std::vector< Type > unfished_numbers_at_age
Definition: population.hpp:72
std::vector< Type > expected_numbers_at_age
Definition: population.hpp:83
-void CalculateBiomass(size_t i_age_year, size_t year, size_t age)
Calculates biomass.
Definition: population.hpp:280
+void CalculateBiomass(size_t i_age_year, size_t year, size_t age)
Calculates biomass.
Definition: population.hpp:281
std::vector< Type > spawning_biomass
Definition: population.hpp:76
int fleet_id
Definition: population.hpp:103
-void CalculateSpawningBiomass(size_t i_age_year, size_t year, size_t age)
Calculates spawning biomass.
Definition: population.hpp:308
+void CalculateSpawningBiomass(size_t i_age_year, size_t year, size_t age)
Calculates spawning biomass.
Definition: population.hpp:309
typename ModelTraits< Type >::ParameterVector ParameterVector
Definition: population.hpp:39
std::vector< Type > expected_catch
Definition: population.hpp:85
void CalculateMortality(size_t i_age_year, size_t year, size_t age)
Calculates total mortality at an index, year, and age.
Definition: population.hpp:208
std::vector< Type > mortality_Z
Definition: population.hpp:63
-Type CalculateSBPR0()
Calculates equilibrium spawning biomass per recruit.
Definition: population.hpp:342
+Type CalculateSBPR0()
Calculates equilibrium spawning biomass per recruit.
Definition: population.hpp:344
size_t nfleets
Definition: population.hpp:44
-void CalculateUnfishedBiomass(size_t i_age_year, size_t year, size_t age)
Adds to existing yearly unfished biomass estimates the biomass for a specified year and age.
Definition: population.hpp:296
+void CalculateUnfishedBiomass(size_t i_age_year, size_t year, size_t age)
Adds to existing yearly unfished biomass estimates the biomass for a specified year and age.
Definition: population.hpp:297
int recruitment_id
recruitment
Definition: population.hpp:88
diff --git a/docs/rcpp__population_8hpp_source.html b/docs/rcpp__population_8hpp_source.html
index 1cd771d..93d08de 100644
--- a/docs/rcpp__population_8hpp_source.html
+++ b/docs/rcpp__population_8hpp_source.html
@@ -243,7 +243,7 @@
Rcpp::NumericVector log_M
Definition: rcpp_population.hpp:63
Population class. Contains subpopulations that are divided into generic partitions (eg....
Definition: population.hpp:36
-void Evaluate()
Executes the population loop.
Definition: population.hpp:534
+void Evaluate()
Executes the population loop.
Definition: population.hpp:537