pgRouting

Changeset 101

Show
Ignore:
Timestamp:
01/29/08 12:55:11 (10 months ago)
Author:
anton
Message:

GAUL utils library location fixed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/extra/tsp/src/tsp.h

    r100 r101  
    2929{ 
    3030  int id; 
    31   double x; 
    32   double y; 
     31  float8 x; 
     32  float8 y; 
    3333} point_t; 
    3434 
  • trunk/extra/tsp/src/tsp_solver.cpp

    r100 r101  
    2020 */ 
    2121                    
    22 #include <iostream> 
    23 #include <fstream> 
    24  
    2522extern "C" 
    2623{ 
     
    246243  population    *pop=NULL;              /* Population of solutions. */ 
    247244  float         score = 0.0;            /* Best score */ 
    248  
    249       std::fstream myfile; 
    250       myfile.open("/tmp/tsp_solver.log", std::ios::out|std::ios::app); 
    251245 
    252246  source_id = source; 
     
    303297 
    304298       
    305       myfile<<"score = "<<score<<"\n"<<std::flush; 
    306       myfile<<"fitness = "<<ga_get_entity_from_rank(pop,0)->fitness<<"\n"<<std::flush;       
    307       myfile.close(); 
    308        
    309299      if(score < ga_get_entity_from_rank(pop,0)->fitness) 
    310300        {