RS01145: A DEXPR ARRAY INITIALIZED AS PRODUCT OF A PARAMETER AND PWL FUNCTION CAUSES INCORRECT EVALUATION OF DEXPR IN POST-PROCESSING

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as fixed if next.

Error description

  • Consider example below that gives incorrect value for "f_[m]" in
    post-processing script. Value of 'hf[m]' as well as obj is
    correct.
    
    range markSel = 0..15;
    float a[m in markSel] = ...;
    
    dvar float+ t_[markSel] in 0.01 .. 0.30;
    dexpr float f_[m in markSel] =
    a[m] * piecewise {
    -1000000 -> 0.01;
    -306.51 -> 0.3;
    1
    } (0.1,100) t_[m];
    dexpr float obj = sum(m in markSel) f_[m];
    
    minimize obj;
    constraints {}
    
    float hf[m in markSel] = f_[m];
    
    execute {
      var m;
      for (m in markSel) {
        writeln("mark "+f_[m]+" "+hf[m]);
      }
      writeln("objective "+cplex.getObjValue());
    }
    

Local fix

  • Declare dexpr and obj as below:
    
    dexpr float f_[m in markSel] =
     piecewise {
       -1000000 -> 0.01;
       -306.51 -> 0.3;
       1
      } (0.1,100) t_[m];
    dexpr float obj = sum(m in markSel) a[m]*f_[m];
    

Problem summary

  • This issue has been resolved and fix will be available with
    CPLEX Optimization Studio 12.5.0.1
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    RS01145

  • Reported component name

    ILOG CPLEX

  • Reported component ID

    5724Y4800

  • Reported release

    C40

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-10-25

  • Closed date

    2012-12-14

  • Last modified date

    2012-12-14

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

  • RC40 PSN

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

IBM ILOG CPLEX

Software version:

C40

Reference #:

RS01145

Modified date:

2012-12-14

Translate my page

Machine Translation

Content navigation