Ignore:
Timestamp:
Jun 10, 2014 11:13:06 PM (5 years ago)
Author:
mlubin
Message:

Remove nonworking problem modification functions. Update docs.

File:
1 edited

Legend:

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

    r2036 r2037  
    370370    model->model_->setBestSolution(sol, n, objval, true);
    371371}
    372 
    373 /* Deletes rows */
    374 COINLIBAPI void COINLINKAGE
    375 Cbc_deleteRows(Cbc_Model * model, int number, const int * which)
    376 {
    377     const char prefix[] = "Cbc_C_Interface::Cbc_deleteRows(): ";
    378     if (VERBOSE > 0) printf("%s begin\n", prefix);
    379 
    380     OsiSolverInterface * solver = model->model_->solver();
    381     solver->deleteRows(number, which);
    382 
    383     if (VERBOSE > 0) printf("%s return\n", prefix);
    384 }
    385 /* Add rows */
    386 COINLIBAPI void COINLINKAGE
    387 Cbc_addRows(Cbc_Model * /*model*/, const int /*number*/,
    388             const double * /*rowLower*/,
    389             const double * /*rowUpper*/,
    390             const int * /*rowStarts*/, const int * /*columns*/,
    391             const double * /*elements*/)
    392 {
    393     const char prefix[] = "Cbc_C_Interface::Cbc_addRows(): ";
    394     if (VERBOSE > 0) printf("%s begin\n", prefix);
    395 
    396 // available through OsiClp
    397 //tbd  model->model_->addRows(number,rowLower,rowUpper,rowStarts,columns,elements);
    398     if (VERBOSE > 0) printf("%s WARNING: NOT IMPLEMENTED\n", prefix);
    399 
    400     if (VERBOSE > 0) printf("%s return\n", prefix);
    401 }
    402 
    403 /* Deletes columns */
    404 COINLIBAPI void COINLINKAGE
    405 Cbc_deleteColumns(Cbc_Model * model, int number, const int * which)
    406 {
    407     const char prefix[] = "Cbc_C_Interface::Cbc_deleteColumns(): ";
    408 //  const int  VERBOSE = 1;
    409     if (VERBOSE > 0) printf("%s begin\n", prefix);
    410 
    411     OsiSolverInterface * solver = model->model_->solver();
    412     solver->deleteCols(number, which);
    413 
    414     if (VERBOSE > 0) printf("%s return\n", prefix);
    415 }
    416 /* Add columns */
    417 COINLIBAPI void COINLINKAGE
    418 Cbc_addColumns(Cbc_Model * /*model*/, int /*number*/,
    419                const double * /*columnLower*/,
    420                const double * /*columnUpper*/,
    421                const double * /*objective*/,
    422                const int * /*columnStarts*/, const int * /*rows*/,
    423                const double * /*elements*/)
    424 {
    425     const char prefix[] = "Cbc_C_Interface::Cbc_addColumns(): ";
    426 //  const int  VERBOSE = 1;
    427     if (VERBOSE > 0) printf("%s begin\n", prefix);
    428 
    429 // available through OsiClp
    430 //tbd  model->model_->addColumns(number,columnLower,columnUpper,objective,
    431 //tbd                       columnStarts,rows,elements);
    432     if (VERBOSE > 0) printf("%s WARNING: NOT IMPLEMENTED\n", prefix);
    433 
    434     if (VERBOSE > 0) printf("%s return\n", prefix);
    435 }
    436 
    437372
    438373COINLIBAPI void COINLINKAGE
Note: See TracChangeset for help on using the changeset viewer.