% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/solution.R
\name{solution_cost}
\alias{solution_cost}
\title{Cost of a solution}
\usage{
solution_cost(solution, cost_evaluator = NULL)
}
\arguments{
\item{solution}{A \code{\link[=vrp_solution]{vrp_solution()}}.}

\item{cost_evaluator}{A \code{\link[=vrp_cost_evaluator]{vrp_cost_evaluator()}}. If \code{NULL}, uses an evaluator
with unit penalties.}
}
\value{
The penalised cost (a \code{numeric} scalar). For feasible solutions this
is the objective cost; the \code{feasible} attribute reports feasibility.
}
\description{
Cost of a solution
}
