Topic
  • 4 replies
  • Latest Post - ‏2008-10-28T03:25:22Z by SystemAdmin
SystemAdmin
SystemAdmin
151 Posts

Pinned topic Inconsistent solution from ODM and OPL

‏2008-10-28T02:14:18Z |

[Boon said:]

Hello,

I am using OPL 6.1 and ODM 3.1.

I build a model in OPL( 1 model file and 1 data file). I generate ODM application from the OPL. I run the ODM and solve the problem. The solutions from running in OPL and running in ODM are different. I did not change any configuration at all. Basically, I have 1 .mod and 1 .dat file, put them in a new project in OPL, then generate the ODM. Did I miss any step in generating the ODM?

Thank you,
Boon
Updated on 2008-10-28T03:25:22Z at 2008-10-28T03:25:22Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    151 Posts

    Re: Inconsistent solution from ODM and OPL

    ‏2008-10-28T02:46:28Z  

    [thiago.serra said:]

    Are you using any dexpr in your objective function?
    If yes, read the topic I did about it.
  • SystemAdmin
    SystemAdmin
    151 Posts

    Re: Inconsistent solution from ODM and OPL

    ‏2008-10-28T03:01:15Z  

    [thiago.serra said:]

    Are you using any dexpr in your objective function?
    If yes, read the topic I did about it.

    [Boon said:]

    Thanks for your answer.

    You are right, I did use dexpr!

    I went ahead and read your topic already. Surprised!!

    So...  We cannot use any coefficient (other than 1, 0) in the objective function if we want to use ODM.

    Thanks,
  • SystemAdmin
    SystemAdmin
    151 Posts

    Re: Inconsistent solution from ODM and OPL

    ‏2008-10-28T03:05:06Z  

    [Boon said:]

    Thanks for your answer.

    You are right, I did use dexpr!

    I went ahead and read your topic already. Surprised!!

    So...  We cannot use any coefficient (other than 1, 0) in the objective function if we want to use ODM.

    Thanks,

    [thiago.serra said:]

    NO, it's not that.

    You can't use parenthesis and all dexpr's should be multiplied only by number (no variables allowed).
  • SystemAdmin
    SystemAdmin
    151 Posts

    Re: Inconsistent solution from ODM and OPL

    ‏2008-10-28T03:25:22Z  

    [thiago.serra said:]

    NO, it's not that.

    You can't use parenthesis and all dexpr's should be multiplied only by number (no variables allowed).

    [Boon said:]

    Thank you for correction and clearification.

    Best,