Ignore:
Timestamp:
Dec 19, 2006 5:12:16 PM (14 years ago)
Author:
forrest
Message:

quadratic again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Cbc/src/Cbc_ampl.cpp

    r496 r504  
    961961    // add in quadratic
    962962    int nz = 1 + n_con;
     963    int nOdd=0;
    963964    fint ** rowqp = colqp + nz;
    964965    double ** delsqp = (double **)(rowqp + nz);
     
    969970        int * start = (int *) colqp[i];
    970971        int * row = (int *) rowqp[i];
     972        if (!element) {
     973          // odd row - probably not quadratic
     974          nOdd++;
     975          continue;
     976        }
    971977#if 0
    972978        printf("%d quadratic els\n",nels);
     
    10671073      }
    10681074    }
     1075    if (nOdd) {
     1076      printf("%d non-linear constraints could not be converted to quadratic\n",nOdd);
     1077      exit(77);
     1078    }
    10691079  }
    10701080  // see if any sos
Note: See TracChangeset for help on using the changeset viewer.