Changeset 2574


Ignore:
Timestamp:
May 15, 2019 7:47:18 AM (5 months ago)
Author:
unxusr
Message:

Cbc_clone init

File:
1 edited

Legend:

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

    r2573 r2574  
    14681468Cbc_clone(Cbc_Model *model)
    14691469{
    1470 
    14711470  const char prefix[] = "Cbc_C_Interface::Cbc_clone(): ";
    14721471  //  const int  VERBOSE = 1;
     
    14781477  result->model_ = new CbcModel(*(model->model_));
    14791478  result->solver_ = dynamic_cast< OsiClpSolverInterface * >(result->model_->solver());
     1479  result->cbcData = new CbcSolverUsefulData();
    14801480  result->handler_ = NULL;
    14811481  result->cmdargs_ = model->cmdargs_;
    14821482  result->relax_ = model->relax_;
     1483  result->cbcData->noPrinting_ = model->cbcData->noPrinting_;
     1484  result->inc_callback = model->inc_callback;
     1485  if (model->colNameIndex)
     1486    Cbc_storeNameIndexes(result, 1);
     1487
     1488  result->colSpace = 0;
     1489  result->nCols = 0;
     1490  result->cNameSpace = 0;
     1491  result->cNameStart = NULL;
     1492  result->cInt = NULL;
     1493  result->cNames= NULL;
     1494  result->cLB = NULL;
     1495  result->cUB = NULL;
     1496  result->cObj = NULL;
    14831497
    14841498  if (VERBOSE > 0)
Note: See TracChangeset for help on using the changeset viewer.