Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  CPLEX on Cloud

    Posted 06/20/20 07:17 AM
    Hello,

    Using the documentation I have done the required configurations in order to run my CPLEX model on the Watson Machine Learning. But when I run it I get the error "The specified key does not exist"





    ------------------------------
    deniz tuana ergonul
    ------------------------------

    #DecisionOptimization


  • 2.  RE: CPLEX on Cloud

    Posted 06/21/20 05:57 AM
    Hi

    do you confirm that when you use 

    https://link.medium.com/EFIwcr6Lu7

    then it works ?

    regards

    ------------------------------
    ALEX FLEISCHER
    ------------------------------



  • 3.  RE: CPLEX on Cloud

    Posted 06/21/20 08:52 AM
    Hello Alex,

    Thanks for the reply. I am getting the following output:

    Model file is EnergyEfficientCloud.mod
    Dat file is EnergyEfficientCloud.dat
    Creating WML Client
    Getting deployment
    Creating model
    Storing model
    Traceback (most recent call last):
    File "oplruncloud.py", line 169, in <module>
    main(sys.argv[1:])
    File "oplruncloud.py", line 73, in main
    client.repository.ModelMetaNames.TYPE: "do-opl_12.10",
    AttributeError: 'ModelMetaNames' object has no attribute 'TYPE'


    I tried commenting out the corresponding line (client.repository.ModelMetaNames.TYPE: "do-opl_12.10",) but then I got these errors: 
    watson_machine_learning_client.wml_client_error.MissingMetaProp: Missing meta_prop with name: 'frameworkName'.
    watson_machine_learning_client.wml_client_error.MissingMetaProp: Missing meta_prop with name: 'frameworkVersion'.

    I then tried adding these two lines:
    client.repository.ModelMetaNames.FRAMEWORK_NAME: "do-opl",
    client.repository.ModelMetaNames.FRAMEWORK_VERSION: "12.10",

    But then I got the error:
    The framework value specified: do-opl, 12.10 is not supported.

    Any help is appreciated.

    Thanks.

    ------------------------------
    deniz tuana ergonul
    ------------------------------



  • 4.  RE: CPLEX on Cloud

    Posted 07/29/20 10:21 AM
    I had the same error message. You must run the following:
    !pip uninstall watson-machine-learning-client -y

    Before:
    !pip install watson-machine-learning-client-V4

    Then the following line:
    client.version

    Will give the following version number output:
    '1.0.109'

    ------------------------------
    Matt Chubb
    ------------------------------