% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.R
\name{read_vrplib}
\alias{read_vrplib}
\title{Read an instance in VRPLIB / TSPLIB format}
\usage{
read_vrplib(path, num_vehicles = NULL)
}
\arguments{
\item{path}{Path to the \code{.vrp} file.}

\item{num_vehicles}{Number of available vehicles. If \code{NULL}, uses the
\code{VEHICLES}/\code{TRUCKS} field, the \verb{-k<n>} suffix in the name, or -- as a last
resort -- the number of clients (always feasible).}
}
\value{
A \code{\link[=vrp_model]{vrp_model()}} ready for \code{\link[=vrp_solve]{vrp_solve()}}.
}
\description{
Reads CVRP (and VRPTW) instances in VRPLIB/CVRPLIB format (extended TSPLIB),
such as the X set by Uchoa et al. Supports Euclidean coordinates
(\code{EDGE_WEIGHT_TYPE : EUC_2D}); time-window and service-time sections are read
when present.
}
