pulp
pulp copied to clipboard
A python Linear Programming API
I tried to use parallel solution option on CBC, just to check if it works and use it later where it might help. Parallel solving hangs from time to time...
In Gurobi and CPLEX, it is possible to use multiple objectives: https://www.gurobi.com/documentation/current/refman/multiple_objectives.html They extend LP format and do it similarly: https://www.ibm.com/docs/en/icos/22.1.1?topic=representation-multiobjective-optimization-in-lp-file-format https://www.gurobi.com/documentation/current/refman/lp_format.html#format:LP Gurobi also extends MPS: https://www.gurobi.com/documentation/current/refman/mps_format.html#format:MPS A good starting...
#650 This pr still incomplete, some functions are hard to type, like `LpVariable.matrix` and `LpVariable.dicts`. And lots of usage of `cast` and `# type: ignore` to adapt old code base...
Currently the code assumes all Darwin aka osx aka maxOS machines are Intel 64 bit. With this change pulp will no look for a solver at ``pulp/solverdir/cbc/osx/arm64/cbc`` and works correctly...
Without the change to `lpdot`, this new test fails with ``` E AssertionError: assert [{'name': 'x', 'value': 1}] == [{'name': 'x', 'value': 2}] E E At index 0 diff: {'name':...
Occasionally, real life constraints may get the form of: `if is_married then age >= 18` These can be expressed in pulp by writing something like this: ```python BIG_CONSTANT = 99999...
Details for the issue -------------------- I'm trying to use snakemake on macOS on the Apple ARM M3 chip, installed via conda. It failed https://github.com/snakemake/snakemake/issues/3007 with the following error from pulp:...
What is your question ----------------------- Hello, is it possible using the modulus operator in a constraint? For example ``` q1 = pulp.LpVariable(name = 'q1', lowBound=100, cat='Integer') Z += (q1 %...
Details for the issue -------------------- #### What did you do? solver = getSolver("SCIP_PY", timeLimit=timelimit, msg=True, warmStart=True) Found a stackoverflow thread while searching for the error https://or.stackexchange.com/questions/6240/or-tools-partial-solution-ignored-due-to-unknown-rate-is-too-large #### What did you...
This adds duals, slacks, and reduced costs to the highspy HiGHS interface. Closes: #780