Decision Optimization

 View Only
  • 1.  Docplex cp Error: Identifier was not defined

    Posted Fri August 30, 2024 03:30 AM

    I am getting an error that I do not understand

    Error message is: "Identifier 'Res('F4')' was not defined".

    How can this be? Clearly Solver knows this variable Res('F4') exists, otherwise how could it explicitly refer to it in the Error message.

    So the error message must have some other meaning

     

    Can someone please help

     

    PS I am using latest docplex with Python in Windows

     

    Ross Dye

    0400669880

     



  • 2.  RE: Docplex cp Error: Identifier was not defined

    Posted Fri August 30, 2024 05:44 AM

    Hi, can you share your model ?



    ------------------------------
    [Alex] [Fleischer]
    [Data and AI Technical Sales]
    [IBM]
    ------------------------------



  • 3.  RE: Docplex cp Error: Identifier was not defined

    Posted Fri August 30, 2024 06:26 AM

    Not easily

    There are 10 files and many hundreds of lines of code

    I just need to understand what this message means

    Clearly Solver knows this variable Res('F4') exists, otherwise how could it explicitly refer to it in the Error message.

     

    Ross Dye

    0400669880

     






  • 4.  RE: Docplex cp Error: Identifier was not defined

    Posted Tue September 03, 2024 05:30 AM

    Hi

    duplicate of https://community.ibm.com/community/user/ai-datascience/discussion/error-message-is-error-value-of-parameter-size-is-out-of-required-range-0-4503599627370494?ReturnUrl=%2fcommunity%2fuser%2fai-datascience%2fcommunities%2fcommunity-home%2fdigestviewer%3fcommunitykey%3dab7de0fd-6f43-47a9-8261-33578a231bb7

    ?



    ------------------------------
    [Alex] [Fleischer]
    [Data and AI Technical Sales]
    [IBM]
    ------------------------------