profforbaby / model

This repository tracks versions of the VRP-REP instance file specification

Home Page:http://www.vrp-rep.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VRP-REP model files

VRP-REP model files is a maven project. It simply contains XML schema files, used to describe Vehicle Routing Problem instances files on the web application VRP-REP.

How do I use the model in my own project ?

If you intend to use the format in a java project, you can use JAXB generated classes to read and write XML files.

Maven

The best way to go is to add the following to your pom.xml :

<dependency>
    <groupId>org.vrp-rep</groupId>
    <artifactId>vrprep-model</artifactId>
    <version>LATEST</version>
</dependency>

Manually include the JAR

Versioned JAR files are directly available from Maven central.

Reader and Writer

As of 0.1.4, the project also include a basic instance reader and writer, that you may use this way :

import java.io.File;
import org.vrprep.model.instance.Instance;
import org.vrprep.model.util.Instances;
...
Instance instance = Instances.read(inputPath);
File file = Instances.write(instance, outputPath);

About

This repository tracks versions of the VRP-REP instance file specification

http://www.vrp-rep.org


Languages

Language:Java 100.0%