Skip to contents

Computes the normalized squared-softplus objective contribution for raw combined seasonal harvest at age. The normalization makes each cell's contribution exactly the contract strength at the biological ceiling.

Usage

get_harvest_wall_penalty(hrate_raw, contract = harvest_wall_contract())

Arguments

hrate_raw

Raw combined harvest rates, usually the reported year-season-age array from do_dynamics().

contract

A list returned by harvest_wall_contract().

Value

An array shaped like hrate_raw containing non-negative objective contributions.