Changeset 2446


Ignore:
Timestamp:
Apr 7, 2019 12:56:40 AM (7 weeks ago)
Author:
stefan
Message:

add Clp_modifyCoefficient to C interface

  • as suggested in #102
Location:
trunk/Clp/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/Clp_C_Interface.cpp

    r2441 r2446  
    375375  model->model_->chgObjCoefficients(objIn);
    376376}
     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);
     383}
    377384/* Drops names - makes lengthnames 0 and names empty */
    378385COINLIBAPI void COINLINKAGE
  • trunk/Clp/src/Clp_C_Interface.h

    r2441 r2446  
    144144/** Change objective coefficients */
    145145COINLIBAPI void COINLINKAGE Clp_chgObjCoefficients(Clp_Simplex *model, const double *objIn);
     146/** Change matrix coefficients */
     147COINLIBAPI void COINLINKAGE Clp_modifyCoefficient(Clp_Simplex *model, int row, int column, double newElement,
     148  bool keepZero);
    146149/** Drops names - makes lengthnames 0 and names empty */
    147150COINLIBAPI void COINLINKAGE Clp_dropNames(Clp_Simplex *model);
Note: See TracChangeset for help on using the changeset viewer.