Skip to content

Commit 936d711

Browse files
improve format for F_Method in control.ss_new
1 parent ce06c58 commit 936d711

File tree

1 file changed

+28
-18
lines changed

1 file changed

+28
-18
lines changed

SS_write_ssnew.tpl

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,28 +1726,38 @@ FUNCTION void write_nucontrol()
17261726
}
17271727
}
17281728
report4<<"#"<<endl;
1729-
report4<<"#Fishing Mortality info "<<endl<<F_ballpark<<" # F ballpark value in units of annual_F"<<endl;
1729+
report4<<"#Fishing Mortality info "<<endl;
1730+
report4<<F_ballpark<<" # F ballpark value in units of annual_F"<<endl;
17301731
report4<<F_ballpark_yr<<" # F ballpark year (neg value to disable)"<<endl;
1731-
report4<<F_Method<<" # F_Method: 1=Pope; 2=instan. F; 3=hybrid; 4=fleet-specific parm/hybrid (#4 is recommended)"<<endl;
1732-
report4<<max_harvest_rate<<" # max F or harvest rate, depends on F_Method"<<endl;
1733-
report4<<"# for Fmethod 1; no additional F input needed"<<endl;
1734-
report4<<"# for Fmethod=2; read overall start F value; overall phase; N detailed inputs to read"<<endl;
1735-
report4<<"# for Fmethod=3; read N iterations for tuning for Fmethod 3"<<endl;
1736-
report4<<"# for Fmethod=4; read list of fleets needing parameters; syntax is: fleet, F_starting_value (if start_PH=1), first PH for parms (99 to stay in hybrid)"<<endl;
1737-
report4<<"# for Fmethod=4; then read N tuning loops for hybrid fleets 2-3 normally enough"<<endl;
1738-
if(F_Method==2)
1739-
{
1740-
report4<<F_parm_intval(1)<<" "<<F_Method_PH(1)<<" "<<F_detail<<" # overall start F value; overall phase; N detailed inputs to read"<<endl;
1741-
report4<<"#Fleet Yr Seas F_value se phase (for detailed setup of F_Method=2; -Yr to fill remaining years)"<<endl<<F_setup2<<endl;
1732+
1733+
report4<<F_Method<<" # F_Method: 1=Pope midseason rate; 2=F as parameter; 3=F as hybrid; 4=fleet-specific parm/hybrid (#4 is superset of #2 and #3 and is recommended)"<<endl;
1734+
report4<<max_harvest_rate<<" # max F (methods 2-4) or harvest fraction (method 1)"<<endl;
1735+
if(F_Method==1)
1736+
{
1737+
report4<<"# F_Method 1: no additional input needed"<<endl;
1738+
}
1739+
else if(F_Method==2)
1740+
{
1741+
report4<<F_parm_intval(1)<<" # overall start F value (all fleets; used if start phase = 1 and not reading parfile)"<<endl;
1742+
report4<<F_Method_PH(1)<<" # start phase for parms (does hybrid in early phases)"<<endl;
1743+
report4<<F_detail<<" # N detailed inputs to read"<<endl;
1744+
report4<<"# detailed setup for F_Method=2; -Yr to fill remaining years"<<endl;
1745+
report4<<"#Fleet Yr Seas F_value se phase"<<endl;
1746+
if(F_detail>0) report4<<F_setup2<<endl;
17421747
}
17431748
else if(F_Method==3)
1744-
{report4<<F_Tune<<" # N iterations for tuning F in hybrid method (recommend 3 to 7)"<<endl;}
1749+
{
1750+
report4<<F_Tune<<" # N iterations for tuning in hybrid mode; recommend 3 (faster) to 5 (more precise if many fleets)"<<endl;
1751+
}
17451752
else if(F_Method==4)
1746-
{
1747-
report4<<"#Fleet start_F first_parm_phase"<<endl;
1748-
for(int j=1;j<=F_Method_4_input.size()-1;j++) {report4<<F_Method_4_input[j]<<endl;}
1749-
report4<<F_Tune<<" #_number of tuning loops for hybrid fleets; 4 good; 3 faster"<<endl;
1750-
}
1753+
{
1754+
report4<<"# read list of fleets that do F as parameter; unlisted fleets stay hybrid, bycatch fleets must be included with start_PH=1, high F fleets should switch early"<<endl;
1755+
report4<<"# (A) fleet, (B) F_initial_value (used if start_PH=1), (C) start_PH for parms (99 to stay in hybrid)"<<endl;
1756+
report4<<"# (A) (B) (C) (terminate list with -9999 for fleet)"<<endl;
1757+
for(int j=1;j<=F_Method_4_input.size()-2;j++) {report4<<F_Method_4_input[j]<<" # "<<fleetname(F_Method_4_input[j](1))<<endl;}
1758+
report4<<"-9999 1 1 # end of list"<<endl;
1759+
report4<<F_Tune<<" #_number of loops for hybrid tuning; 4 good; 3 faster; 2 enough if switching to parms is enabled"<<endl;
1760+
}
17511761
17521762
report4<<"#"<<endl;
17531763
report4<<"#_initial_F_parms; for each fleet x season that has init_catch; nest season in fleet; count = "<<N_init_F2<<endl;

0 commit comments

Comments
 (0)