generators/netgen/main.h
author Alpar Juttner <alpar@cs.elte.hu>
Sun, 11 Dec 2011 11:19:39 +0100
changeset 11 cf6519daa7fa
permissions -rw-r--r--
Refactoring and test instance in test logs
alpar@7
     1
#ifndef NETGEN_MAIN_H
alpar@7
     2
#define NETGEN_MAIN_H
alpar@7
     3
alpar@7
     4
#ifdef __cplusplus
alpar@7
     5
extern "C" {
alpar@7
     6
#endif
alpar@7
     7
alpar@7
     8
#define PROBLEM_PARMS 13		/* aliases for generation parameters */
alpar@7
     9
#define NODES	    parms[0]		/* number of nodes */
alpar@7
    10
#define SOURCES     parms[1]		/* number of sources (including transshipment) */
alpar@7
    11
#define SINKS	    parms[2]		/* number of sinks (including transshipment) */
alpar@7
    12
#define DENSITY     parms[3]		/* number of (requested) arcs */
alpar@7
    13
#define MINCOST     parms[4]		/* minimum cost of arcs */
alpar@7
    14
#define MAXCOST     parms[5]		/* maximum cost of arcs */
alpar@7
    15
#define SUPPLY	    parms[6]		/* total supply */
alpar@7
    16
#define TSOURCES    parms[7]		/* transshipment sources */
alpar@7
    17
#define TSINKS	    parms[8]		/* transshipment sinks */
alpar@7
    18
#define HICOST	    parms[9]		/* percent of skeleton arcs given maximum cost */
alpar@7
    19
#define CAPACITATED parms[10]		/* percent of arcs to be capacitated */
alpar@7
    20
#define MINCAP	    parms[11]		/* minimum capacity for capacitated arcs */
alpar@7
    21
#define MAXCAP	    parms[12]		/* maximum capacity for capacitated arcs */
alpar@7
    22
alpar@7
    23
  int orig_main(long seed,long problem,long *parms);
alpar@7
    24
alpar@7
    25
#ifdef __cplusplus
alpar@7
    26
}
alpar@7
    27
#endif
alpar@7
    28
alpar@7
    29
alpar@7
    30
#endif