Changeset 2028


Ignore:
Timestamp:
Apr 14, 2014 3:53:47 AM (4 years ago)
Author:
forrest
Message:

fix ampl uninitialized memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • releases/2.8.9/Cbc/src/Cbc_ampl.cpp

    r1926 r2028  
    413413    /* for basis info */
    414414    info->columnStatus = (int *) malloc(n_var * sizeof(int));
     415    for (int i=0;i<n_var;i++)
     416      info->columnStatus[i]=3;
    415417    info->rowStatus = (int *) malloc(n_con * sizeof(int));
     418    for (int i=0;i<n_con;i++)
     419      info->rowStatus[i]=1;
    416420    csd = suf_iput("sstatus", ASL_Sufkind_var, info->columnStatus);
    417421    rsd = suf_iput("sstatus", ASL_Sufkind_con, info->rowStatus);
Note: See TracChangeset for help on using the changeset viewer.