Minor fixes

Request to comments on pull request for simplex method. In particular
*) while(1) is replaced with for(;;)
*) if(true){...} constructions in tests are replaced with #if 1 ...
 #endif
This commit is contained in:
Alex Leontiev
2013-07-30 04:14:36 +03:00
parent 52b250f466
commit 3013ad6624
2 changed files with 15 additions and 15 deletions

View File

@@ -208,7 +208,7 @@ static int initialize_simplex(Mat_<double>& c, Mat_<double>& b,double& v,vector<
static int inner_simplex(Mat_<double>& c, Mat_<double>& b,double& v,vector<int>& N,vector<int>& B,vector<unsigned int>& indexToRow){
int count=0;
while(1){
for(;;){
dprintf(("iteration #%d\n",count));
count++;