Skip to content

Commit

Permalink
Target in IcesMSY HCR changed
Browse files Browse the repository at this point in the history
  • Loading branch information
dorleta committed Jan 29, 2024
1 parent a1b1204 commit f93123c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/MP_3c_HCR_ICES_MSY.R
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ IcesHCR <- function(stocks, advice, advice.ctrl, year, stknm,...){

# Find where the SSB (Age structured) OR Biomass (Aggregated) in relation to reference points.
b.pos <- findInterval(b.datyr, ref.pts[c('Blim', 'Btrigger'),i]) # [1]
Ftg <- ifelse(b.pos == 0, 0, ifelse(b.pos == 1, ref.pts['Fmsy',i]*b.datyr/ref.pts[ 'Btrigger',i], ref.pts['Fmsy',i]))
Ftg <- ifelse(b.pos == 0, 0, ifelse(b.pos == 1, ref.pts['Fmsy',i]*b.datyr/ref.pts[ 'Btrigger',i], ref.pts[target,i]))

print(Ftg)

Expand Down

0 comments on commit f93123c

Please sign in to comment.