Changeset b644f6 in git for IntegerProgramming


Ignore:
Timestamp:
Jun 19, 2006, 5:55:53 PM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
790ebc5ddfcc5b829d98824f9de6b7b3d2c6cf1e
Parents:
4d63daba991dd3552caba27e6232e3d65bda66a3
Message:
*hannes: back to 1.4


git-svn-id: file:///usr/local/Singular/svn/trunk@9237 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • IntegerProgramming/IP_algorithms.cc

    r4d63da rb644f6  
    30813081    }
    30823082
    3083     Integer *right_hand=new Integer[weighted_variables+elimination_variables];
     3083    Integer right_hand[weighted_variables+elimination_variables];
    30843084
    30853085    for(short k=0;k<instances;k++)
     
    31023102            "first input \nfile, "
    31033103            "this and all following right hand vectors will be ignored"<<endl;
    3104           delete[] right_hand;
    31053104          return 0;
    31063105        }
     
    31713170      output<<"computation time"<<endl;
    31723171      output<<setw(6)<<setprecision(2)<<elapsed<<" sec"<<endl<<endl;
    3173       delete[] right_hand;
    31743172    }
    31753173  }
     
    31893187      }
    31903188
    3191       Integer *right_hand=new Integer[weighted_variables+elimination_variables];
     3189      Integer right_hand[weighted_variables+elimination_variables];
    31923190      BOOLEAN error=FALSE;    // to test legality of right hand vectors
    31933191
     
    32113209              "first input \nfile, this and all following right hand vectors "
    32123210              "will be ignored"<<endl;
    3213             delete[] right_hand;
    32143211            return 0;
    32153212          }
     
    32803277        output<<"computation time"<<endl;
    32813278        output<<setw(6)<<setprecision(2)<<elapsed<<" sec"<<endl<<endl;
    3282         delete[] right_hand;
    32833279      }
    32843280    }
     
    32973293      }
    32983294
    3299       Integer *initial_solution=new Integer[weighted_variables];
     3295      Integer initial_solution[weighted_variables];
    33003296
    33013297      for(short k=0;k<instances;k++)
     
    33133309              "first input \nfile, this and all following right hand vectors "
    33143310              "will be ignored"<<endl;
    3315             delete[] initial_solution;
    33163311            return 0;
    33173312          }
     
    33523347        output<<setw(6)<<setprecision(2)<<elapsed<<" sec"<<endl<<endl;
    33533348      }
    3354       delete[] initial_solution;
    33553349    }
    33563350
Note: See TracChangeset for help on using the changeset viewer.