Helper objective function for finding the optimal attack-rate for a given prevalence rate

fn(A, PAR, Bfn, X)

Arguments

A

An attack-rate

PAR

A set of model parameters

Bfn

A function for building the matrix represention of the system of equations that update the state vector

X

A prevalence rate