home *** CD-ROM | disk | FTP | other *** search
- /* 11:00 30-Aug-87 (tsp.h) travelling Salesman Problem header file */
-
- /************************************************************************
- * Copyright(C) 1988 Neural-Ware Inc *
- * 103 Buckskin Court, Sewickley, PA 15143, United States of America *
- * *
- * All rights reserved. No part of this program may be reproduced, *
- * stored in a retrieval system, or tramsmitted, in any form or by any *
- * means, electronic, mechanical, photocopying, recording or otherwise *
- * without the prior written permission of the copyright owner, *
- * Neural-Ware, Inc. *
- ************************************************************************
- */
-
- /************************************************************************/
- /* */
- /* TSP build structures for cities */
- /* */
- /************************************************************************/
-
- #define DEFAULT_CITY_FILE_NAME "city" /* the default name for read/write */
- #define DEFAULT_NET_FILE_NAME "tsp.ins" /* the default file name for write */
-
- /* Network energy functions */
- #define HOPF 0
- #define SZU 1
- #define Other 2
-
- #ifdef SUN
- #define MAX_NUM_CITIES 30
- #else
- #define MAX_NUM_CITIES 15
- #endif
-
- #ifdef SUN
- #define MAX_CITY_NAME_SIZE 30
- #else
- #define MAX_CITY_NAME_SIZE 10
- #endif
-
- struct city {
- char name[MAX_CITY_NAME_SIZE];
- REAL xloc;
- REAL yloc;
- REAL dist[MAX_NUM_CITIES];
- };
-
- typedef struct city CITY;
-
- /************************************************************************/
- /* */
- /* TSP constants for network build */
- /* */
- /************************************************************************/
-
-
- #define NLAY 5 /* layer control blocks to allocate */
- #define NPES 5*MAX_NUM_CITIES*MAX_NUM_CITIES /* # of pes to work with */
- #define NCONN_PER_CITY 4
- #define NCONN NCONN_PER_CITY*MAX_NUM_CITIES /* max # conns in a PE */
-
-
- #define NTEST 1 /* number of test inputs */
- #define NINPUT MAX_NUM_CITIES*MAX_NUM_CITIES /* number of inputs/test */
- #define NOUTPUT MAX_NUM_CITIES*MAX_NUM_CITIES /* number of outputs/test */
-
- #define FIXED_WT 1
- #define MOD_WT 0
-