Changeset 2986


Ignore:
Timestamp:
Apr 10, 2020 3:39:03 PM (3 months ago)
Author:
unxusr
Message:

safe setInt and setDbl param

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Cbc_C_Interface.cpp

    r2983 r2986  
    12341234void CBC_LINKAGE
    12351235Cbc_setIntParam(Cbc_Model *model, enum IntParam which, const int val) {
     1236  assert(which < N_INT_PARAMS);
    12361237  model->int_param[which] = val;
    12371238}
     
    12391240void CBC_LINKAGE
    12401241Cbc_setDblParam(Cbc_Model *model, enum DblParam which, const double val) {
     1242  assert(which < N_DBL_PARAMS);
    12411243  model->dbl_param[which] = val;
    12421244}
Note: See TracChangeset for help on using the changeset viewer.