Changeset 2418 for trunk/Cbc


Ignore:
Timestamp:
Nov 14, 2018 7:21:41 AM (8 months ago)
Author:
forrest
Message:

make -preprocess save give correct column names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcSolver.cpp

    r2415 r2418  
    44634463                                //solver2->resolve();
    44644464                                if (preProcess == 2) {
     4465                                    // names are wrong - redo
     4466                                    const int * originalColumns = process.originalColumns();
     4467                                    int numberColumns = solver2->getNumCols();
     4468                                    OsiSolverInterface * originalSolver = model.solver();
     4469                                    for (int i=0;i<numberColumns;i++) {
     4470                                      int iColumn = originalColumns[i];
     4471                                      solver2->setColName(i,originalSolver->getColName(iColumn));
     4472                                    }
    44654473                                    OsiClpSolverInterface * clpSolver2 = dynamic_cast< OsiClpSolverInterface*> (solver2);
    44664474                                    ClpSimplex * lpSolver = clpSolver2->getModelPtr();
Note: See TracChangeset for help on using the changeset viewer.