Skip to content

Commit accc841

Browse files
Bug: Reset step adjusters
Reset multipliers between Benchmark, OFL, ABC, Rebuild, and F0 loops to prevent convergence errors.
1 parent d4877cb commit accc841

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Allocation_forecasting.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,6 +1556,9 @@ run.projections<-function(Assessment_dir, #Here you set the location of a previo
15561556

15571557
#If all values have converged check if this is the OFL, ABC, or Rebuild loop
15581558
if(keepFitting==FALSE){
1559+
Curr_max_mult <- Last_max_mult <- Min_max_mult <- F_maxed <- 100000
1560+
global_adjuster <- F_adjust1 <- F_adjust1_2 <- F_adjust2a <- F_adjust2b <- 1
1561+
F_adjust2 <- F_adjust2_2 <- F_SS_adjust <- F_adjust3 <- rep(1,forecast[["Nforecastyrs"]]*length(seasons)*length(F_cols))
15591562
if(fitting_Fixed_Catch){
15601563
if(Messages == TRUE){
15611564
message(paste0("Constant Catch target ",CC_loop," of ",length(Const_Catch)," achieved for allocation loop ",allocation_loop," of ",N_allocation_scenarios))

0 commit comments

Comments
 (0)