% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fitting.R
\name{optimACS}
\alias{optimACS}
\title{Auxiliary objective function for \code{fitACS}}
\usage{
optimACS(par, id, eACS, error = "MSE")
}
\arguments{
\item{par}{numeric vector of ACS parameter values}

\item{id}{character; ACS identifier (e.g. \code{"weibull"})}

\item{eACS}{numeric vector of empirical ACS values}

\item{error}{character; error criterion — currently only \code{"MSE"}}
}
\value{
scalar numeric; the MSE between theoretical and empirical ACS
}
\description{
Computes the mean squared error between a theoretical autocorrelation
structure and the empirical ACS; passed as \code{fn} to \code{optim} inside
\code{\link{fitACS}}.
}
\seealso{
\code{\link{fitACS}}
}
\keyword{internal}
