Skip to contents

This function adjusts the model parameters to match the Ecopath data. It does this by adjusting the consumption, production, and yield parameters.

Usage

matchEcopath(params, tol = 0.1, max_iter = 10)

isEcopathMatched(params, tol = 0.1)

Arguments

params

A MizerParams object

tol

The relative tolerance for the match. Default is 0.1.

max_iter

The maximum number of iterations. Default is 100.

Value

A MizerParams object matched to the Ecopath data

Details

The match function calls matchConsumption and matchProduction repeatedly until both consumption and production matches within the tolerance specified by the tol parameter. The function will return a warning if the maximum number of iterations is reached without converging.