Ignore:
Timestamp:
Apr 7, 2019 11:34:28 PM (6 months ago)
Author:
stefan
Message:

sync with trunk

Location:
stable/1.17/Clp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable/1.17/Clp

  • stable/1.17/Clp/src

  • stable/1.17/Clp/src/Clp_C_Interface.cpp

    r2385 r2449  
    264264    collb, colub, obj, rowlb, rowub);
    265265}
     266
    266267/* read quadratic part of the objective (the matrix part) */
    267268COINLIBAPI void COINLINKAGE
     
    284285  return model->model_->readMps(filename, keepNames != 0, ignoreErrors != 0);
    285286}
     287/* Write an MPS file to the given filename */
     288COINLIBAPI int COINLINKAGE
     289Clp_writeMps(Clp_Simplex *model, const char *filename,
     290  int formatType,
     291  int numberAcross,
     292  double objSense)
     293{
     294  return model->model_->writeMps(filename, formatType, numberAcross, objSense);
     295}
    286296/* Copy in integer informations */
    287297COINLIBAPI void COINLINKAGE
     
    364374{
    365375  model->model_->chgObjCoefficients(objIn);
     376}
     377/* Change matrix coefficients */
     378COINLIBAPI void COINLINKAGE
     379Clp_modifyCoefficient(Clp_Simplex *model, int row, int column, double newElement,
     380  bool keepZero)
     381{
     382  model->model_->modifyCoefficient(row, column, newElement, keepZero);
    366383}
    367384/* Drops names - makes lengthnames 0 and names empty */
     
    772789  std::string columnName = model->model_->columnName(iColumn);
    773790  strcpy(name, columnName.c_str());
     791}
     792
     793/** Set row name - Nice if they are short - 8 chars or less I think */
     794COINLIBAPI void COINLINKAGE Clp_setRowName(Clp_Simplex *model, int iRow, char *name)
     795{
     796  std::string sName = name; // Copies the memory AFAIK
     797  model->model_->setRowName(iRow, sName);
     798}
     799/** Set column name - Nice if they are short - 8 chars or less I think */
     800COINLIBAPI void COINLINKAGE Clp_setColumnName(Clp_Simplex *model, int iColumn, char *name)
     801{
     802  std::string sName = name; // Copies the memory AFAIK
     803  model->model_->setColumnName(iColumn, sName);
    774804}
    775805
Note: See TracChangeset for help on using the changeset viewer.