# NOT RUN {
# Load the 1970-1999 version of the internal North Sea model and run for 1 year
m1 <- e2e_read("North_Sea", "1970-1999",model.ident="70_99")
r1 <-e2e_run(m1,nyears=1)
# Load the 2003-2013 version of the internal North Sea model and run for 1 year
m2 <- e2e_read("North_Sea", "2003-2013",model.ident="03_13")
r2 <-e2e_run(m2,nyears=1)
# Compare the annual average mass in 1970-1999 (as the baseline case) with 2002-2013
# (as the scenario case):
mdiff_results1 <- e2e_compare_runs_bar(selection="AAM",
model1=NA, use.saved1=FALSE, results1=r1,
model2=NA, use.saved2=FALSE, results2=r2,
log.pc="PC", zone="W",
bpmin=(-50),bpmax=(+50),
maintitle="2003-2013 compared with 1970-1999")
mdiff_results1
# Compare the annual catch in 1970-1999 (as the baseline case) with 2002-2013
# (as the scenario case):
mdiff_results2 <- e2e_compare_runs_bar(selection="CATCH",
model1=NA, use.saved1=FALSE, results1=r1,
model2=NA, use.saved2=FALSE, results2=r2,
log.pc="LG", zone="W",
bpmin=(-0.9),bpmax=(+0.4),
maintitle="2003-2013 compared with 1970-1999")
mdiff_results2
# }
# NOT RUN {
# Create a new scenario run from 2003-2013 case.
# Copy the 2003-2013 configuration into a new model object:
scen1_model <- m2
scen1_model$setup$model.ident <- "scenario1"
# Gear 4 (Beam_Trawl_BT1+BT2) activity rate rescaled to 0.5*baseline:
scen1_model$data$fleet.model$gear_mult[4] <- 0.5
scen1_results <- e2e_run(scen1_model,nyears=20)
# Compare the annual average mass from the the 2003-2013 baseline with scenario1 data
mdiff_results3 <- e2e_compare_runs_bar(selection="AAM",
model1=NA, use.saved1=FALSE, results1=r2,
model2=NA, use.saved2=FALSE, results2=scen1_results,
log.pc="PC", zone="W",
bpmin=(-30),bpmax=(+30),
maintitle="Beam Trawl activity reduced by half")
mdiff_results3
# }
# NOT RUN {
# }
# NOT RUN {
# Create a second sceanario from the 1970-1999 case, this time saving the results to a file;
# csv output to temporary folder since results.path was not set in e2e_read() when creating m1.
# Copy the baseline configuration into a new model object:
scen2_model <- m1
scen2_model$setup$model.ident <- "scenario2"
# Gear 1 (Pelagic_Trawl+Seine) activity rate rescaled to 0.5*baseline:
scen2_model$data$fleet.model$gear_mult[1] <- 0.5
scen2_results <- e2e_run(scen2_model,nyears=20, csv.output=TRUE)
# Compare the annual catches in the 1970-1999 base line with the Pelagic Trawl/seine scenario
mdiff_results4 <- e2e_compare_runs_bar(selection="CATCH",
model1=NA, use.saved1=FALSE, results1=r1,
model2=scen2_model,use.saved2=TRUE, results2=NA,
log.pc="LG", zone="W",
bpmin=(-0.4),bpmax=(+0.6),
maintitle="Pelagic Trawl/Seine activity reduced by half")
mdiff_results4
# }
Run the code above in your browser using DataLab