v1.5.3: Parallel processing, timers, OpenMP, facet labels, Rmd user guide#1
Open
Linbojun99 wants to merge 11 commits into
Open
v1.5.3: Parallel processing, timers, OpenMP, facet labels, Rmd user guide#1Linbojun99 wants to merge 11 commits into
Linbojun99 wants to merge 11 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Major update adding parallel processing, execution timing, and documentation improvements.
New Features
Parallel Processing (
ncoresparameter)run_acl(ncores): Parallel multi-start optimization viaparLapply(socket cluster). Runs N independent optimizations from jittered starting points, keeps the best result. Purpose: robustness (avoid local optima), recommendedncores = 2–4.sim_acl(ncores): Parallel across simulation iterations viamclapply(Mac/Linux) orparLapply(Windows). Purpose: speed.retro_acl(ncores): Parallel across retrospective peels viamclapply/parLapply. Purpose: speed.Execution Timers
run_acl: Reports optimization time, sdreport time, and total time.sim_acl: Reports per-iteration time and total time with success count.retro_acl: Reports full model time, per-peel time, and total time breakdown.OpenMP Support (ACL.cpp)
Type nll = zerowithparallel_accumulator<Type> nll(this)to enable TMB native OpenMP gradient parallelism.compile_acl.R: Auto-detects platform and compiles with OpenMP flags (-fopenmp). Falls back gracefully if OpenMP is unavailable.Bug Fixes
Facet Label Improvements (7 plot functions)
Length bin <7,Length bin >49instead of5-7,49-51.Year 1,Year 2instead of1,2..acl_fix_len_labels()inacl_theme.R.plot_abundance,plot_biomass,plot_SSB,plot_CatL,plot_pla,plot_residuals.Documentation
ACL_User_Guide.Rmd: Full bilingual (EN/CN) user guide with all features documented.example_1_simulation.Randexample_2_YTF_real_data.Rwith core detection (Step 0) andncoresusage.run_acl,sim_acl,retro_aclwithncoresparameter documentation.Files Changed
R/:run_acl.R,sim_acl.R,retro_acl.R,compile_acl.R,acl_theme.R,plot_abundance.R,plot_biomass.R,plot_SSB.R,plot_CatL.R,plot_pla.R,plot_residuals.Rinst/extdata/ACL.cppscr/example_1_simulation.R,scr/example_2_YTF_real_data.RACL_User_Guide.Rmd(new)