--
You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
To post to this group, send email to pulp-or...@googlegroups.com.
To unsubscribe from this group, send email to pulp-or-discu...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pulp-or-discuss?hl=en.
--
Frank Olaf Sem-Jacobsen
I'm well aware of how swapping works, and the performance hit it
incurs. This is precisely reason why I want to find some other
solution to deal with the large memory problem.
The reason for the large memory requirements is because the problem is
large, with thousands of variables. We have already gone several
rounds of optimising the problem size to allow us to scale as much as
possible within our current limits.
While I am on the subject, how much space is contributed by the
variable name? Say if I half the size of the variable names, will this
half the memory requirements?
Thanks.
Frank Olaf
--
Frank Olaf Sem-Jacobsen
Hi Olaf,
Right now pulp solves problems by copying it to the targeted solver:
- If the targeted solver is commandline, the problem is written to a
file and then the solver is spawned and the output parsed.
- If the targeted solver is reached from a library, the problem is
formulated using the solver's API, and the values are retrieved from
this API after the solve.
This can't be worked around without changing the API. Why? Consider
this example from the project page:
# Build the problem: At this point pulp is not aware of what
solver is to be used
x = LpVariable("x", 0, 3)
y = LpVariable("y", 0, 1)
prob = LpProblem("myProblem", LpMinimize)
prob += x + y <= 2
prob += -4*x + y
# Solve it: that is where you tell pulp your solver of choice.
status = prob.solve(GLPK(msg = 0))
So because you don't specify the solver when you formulate the
problem, but only at solve time, pulp can't write directly in the
solver's memory on the fly, thus the duplication.
If you really want a chance to reduce your memory footprint, you
should probably use a different API...
--
New posters to this group are moderated which can take up to 48 hours, so please be patient if your first post takes a while to turn up.
---
You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pulp-or-discu...@googlegroups.com.
To post to this group, send email to pulp-or...@googlegroups.com.
Visit this group at https://groups.google.com/group/pulp-or-discuss.
For more options, visit https://groups.google.com/d/optout.
--
New posters to this group are moderated which can take up to 48 hours, so please be patient if your first post takes a while to turn up.
---
You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pulp-or-discu...@googlegroups.com.
To post to this group, send email to pulp-or...@googlegroups.com.