Add the order column to the control target data.frame so that targets are processed in the correct order.

add_target_order_fls(control)

Arguments

control

A fwdControl object

Value

A fwdControl object with an order column.

Details

It is important that the targets in the control object are processed in the correct order. Targets can happen simultaneously. For example, if there are multiple FLFishery objects in operating model each will need to have a target to solve for at the same time as the others. The targets are processed in a time ordered sequence (year / season). However, within the same year and season it is necessary for the min and max targets to be processed separatley and after the other targets.