Changeset b644f6 in git
- Timestamp:
- Jun 19, 2006, 5:55:53 PM (17 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 790ebc5ddfcc5b829d98824f9de6b7b3d2c6cf1e
- Parents:
- 4d63daba991dd3552caba27e6232e3d65bda66a3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
IntegerProgramming/IP_algorithms.cc
r4d63da rb644f6 3081 3081 } 3082 3082 3083 Integer *right_hand=new Integer[weighted_variables+elimination_variables];3083 Integer right_hand[weighted_variables+elimination_variables]; 3084 3084 3085 3085 for(short k=0;k<instances;k++) … … 3102 3102 "first input \nfile, " 3103 3103 "this and all following right hand vectors will be ignored"<<endl; 3104 delete[] right_hand;3105 3104 return 0; 3106 3105 } … … 3171 3170 output<<"computation time"<<endl; 3172 3171 output<<setw(6)<<setprecision(2)<<elapsed<<" sec"<<endl<<endl; 3173 delete[] right_hand;3174 3172 } 3175 3173 } … … 3189 3187 } 3190 3188 3191 Integer *right_hand=new Integer[weighted_variables+elimination_variables];3189 Integer right_hand[weighted_variables+elimination_variables]; 3192 3190 BOOLEAN error=FALSE; // to test legality of right hand vectors 3193 3191 … … 3211 3209 "first input \nfile, this and all following right hand vectors " 3212 3210 "will be ignored"<<endl; 3213 delete[] right_hand;3214 3211 return 0; 3215 3212 } … … 3280 3277 output<<"computation time"<<endl; 3281 3278 output<<setw(6)<<setprecision(2)<<elapsed<<" sec"<<endl<<endl; 3282 delete[] right_hand;3283 3279 } 3284 3280 } … … 3297 3293 } 3298 3294 3299 Integer *initial_solution=new Integer[weighted_variables];3295 Integer initial_solution[weighted_variables]; 3300 3296 3301 3297 for(short k=0;k<instances;k++) … … 3313 3309 "first input \nfile, this and all following right hand vectors " 3314 3310 "will be ignored"<<endl; 3315 delete[] initial_solution;3316 3311 return 0; 3317 3312 } … … 3352 3347 output<<setw(6)<<setprecision(2)<<elapsed<<" sec"<<endl<<endl; 3353 3348 } 3354 delete[] initial_solution;3355 3349 } 3356 3350
Note: See TracChangeset
for help on using the changeset viewer.