[Python] How can I read an LP/MPS file in pulp?

Discussão em 'Python' iniciado por Stack, Março 19, 2025.

  1. Stack

    Stack Membro Participativo

    I have a LP/MPS file like this:

    Maximize
    3x + 2y

    Subject To
    Constraint1: x + 2y <= 5
    Constraint2: 2x - y >= 3

    Bounds
    0 <= x <= 10
    y >= 0

    General
    x, y

    End


    Can I read it in pulp or I have to read by myself? I've tried to read it by myself, and it's very complicated. I also searched on the internet for how to read an LP/MPS file, but I didn't find any instructions. Thanks

    Continue reading...

Compartilhe esta Página