Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only

How to run an OPL compiled model in DOCPLEXCLOUD

  • 1.  How to run an OPL compiled model in DOCPLEXCLOUD

    Posted 12/11/17 04:19 AM

    Hi,

    what about docplexcloud and security ?

    As can be read at https://developer.ibm.com/docloud/documentation/decision-optimization-on-cloud/pricing-plans-and-free-trial/

    What happens to my data?

    Data submitted to DOcplexcloud is stored in a secure object store. Only the DOcplexcloud Operations Team has access to the object store and all connections are secure (https). Data is uploaded to DOcplexcloud when a job is submitted and exists only in the system while the job exists. Your data is encrypted in the object store using a single encryption key controlled by the DOcplexcloud Operations Team. As soon as a job is deleted in the system, all associated customer data is also deleted.

    On top of that, you may also use the compiled model feature :

    From the IDE, you can generate a compiled model. A compiled model is a binary version of a .mod file.

    Keeping your models as compiled files may help you protect your intellectual property because these binary files are not human-readable.

    But this .opl file is not yet an input file for docplexcloud in https://developer.ibm.com/docloud/documentation/docloud/supported-file-types/

    The way to go is simply to rename the .opl file into a .mod file and then everything works fine.

    Let me give you a tiny example:

    let me give you an example

    take the model

    // 300 kids bus 40 bus 30 , 50 40
     
    int nbEnfants=300;
    float coutbus40=50;
    float coutbus30=40;
    float coutbus40apres5=45;
     
    dvar int+ nb40;
    dvar int+ nb30;
     
    minimize piecewise{0->0;coutbus40->5;coutbus40apres5}   nb40  +nb30*coutbus30;
     
    subject to
    {
    40*nb40+nb30*30>=nbEnfants;
     
    }

    You compile that into zoocrypt.opl

    and then you rename that into zoocrypy.mod

    Inside you have

    YOPLžkî5Âhs&wO~CC'PìwO~CC'PìwO~CC'PìwO~CC'Pìî?[ÃBîéþˆ¹G?±Ø»½†C#Å5ä>Nz½
    ªä.žêy1Ë&;è-¢
    ´qµvò+|¾išƒ·¶"µÓƒ íø$Lµ}Ù<÷Ñ›‡ù V"û¾0+qÒݸǁÐ*L‡É%]wO~CC'PìwO~CC'PìwO~CC'PìwO~CC'PìwO~CC'PìØèoõ³        4d        ûËõU÷Ó/
    "¹>‡à|2+p)N±`X:žÆ{e´qÈE-E!®3«^tðD‰¡Þóó5ÎZ4`ød$Æ÷A•'üöY°]ÅM0ôzØz3Jßpð¨3³š\ïíÔû, Ÿ3R¥IôïûêmN•µ³
    ÐYy²-ÿ ÿ6~Ôð?·]ë'`´>ð~øâ÷
    n»ßk"êžÃmY ¬Û"¨>xÙ'ôf‡        Ò_
    œpzýèHÏš¬àÏÖ­8€f.D¬ÐWg¨cÊZ/¾÷ç6³
    ÐYy²-ôšJðD@a«ž¶v{Ù×½+£Ì•B%ó§ðG'4bH6¯ƒ"Š½9Óä½/D²"s6ÎlQ
    @À¬®™•äž2q¾je­jÈD|Õ¸ýŽ?ÎãÚ"

    This is crypted

    But you can run that in docplexcloud

     

    regards

    PS: Very active forum specific to docplexcloud at https://developer.ibm.com/answers/smartspace/docloud/index.html

     

     

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer