TSPLIB
Functions
src/Validate.cpp File Reference

Validates an travelling salesman problem instance. More...

#include <iostream>
#include <xercesc/util/XMLException.hpp>
#include <xercesc/util/OutOfMemoryException.hpp>
#include "ValidateConstantsFunctionsAndClasses.hpp"
#include "ValidateIO.hpp"
#include "ValidateInstance.hpp"

Go to the source code of this file.

Functions

XERCES_CPP_NAMESPACE_USE int main (int argc, char *argv[])

Detailed Description

Validates an travelling salesman problem instance.

Validates an travelling salesman problem instance.

Author:
Ulrich Pferschy and Rostislav Stanek (Institut fuer Statistik und Operations Research, Universitaet Graz)

Definition in file Validate.cpp.


Function Documentation

XERCES_CPP_NAMESPACE_USE int main ( int  argc,
char *  argv[] 
)

The main function.

Parameters:
argcNumber of elements in the array argv, in particular 1 or 2.
argvName of the running program or name of the running program, name of the input file.
Returns:
  • 0 if succeeded,
  • 1 otherwise.

Definition at line 37 of file Validate.cpp.

References Instance::getDescription(), Instance::getGraph(), Graph::getIsUndirected(), Graph::getN(), Instance::getName(), Instance::getSource(), instanceIn(), and parseCommandLineArguments().

 All Classes Files Functions Variables Friends Defines