See discussion [here](https://github.com/sdmTMB/sdmTMB/issues/497) and demo script [here ](https://github.com/vast-lib/tinyVAST/blob/dev/scratch/detect_corner_constraint.R)
See discussion here and demo script here