Skip to content

VRP-REP/model

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

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);