Ignore:
Timestamp:
Apr 14, 2014 1:35:27 PM (5 years ago)
Author:
forrest
Message:

fix some ampl problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/2.8/Cbc/src/Cbc_ampl.cpp

    r1926 r2031  
    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);
     
    694698int ampl_obj_prec()
    695699{
    696     return obj_prec();
     700    int precision = obj_prec();
     701    if (precision<=0)
     702        precision=15;
     703    return precision;
    697704}
    698705void writeAmpl(ampl_info * info)
Note: See TracChangeset for help on using the changeset viewer.