Forum Discussion

FICO's avatar
FICO
Community Manager
7 years ago

?516 Error: Problem has not been loaded

Hello community,

I'm using the python API xpress and trying to load a .lp file; (m = xp.problem () , m.read("file")) ;

The file is around 2 GB and i cannot load it; Is there any size limitation in the python api?

I can read it into the solver from command prompt but just not from python. Appreciate any advice!

Thank you!

Mark

1 Reply

  • FICO's avatar
    FICO
    Community Manager

    Hi Mark,

    there is no size limitation in the Python API if you have the full license. If it is not a license issue, I think it's because loading a problem into memory using Python uses a little more memory than with the command prompt, because of a few extra data structures. This might use up all your memory. Can you tell how much memory is available before reading the problem?

    Thanks,

    Pietro