Tom
--
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-discuss@googlegroups.com.
To unsubscribe from this group, send email to pulp-or-discuss+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pulp-or-discuss?hl=en.
--
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-discuss@googlegroups.com.
To unsubscribe from this group, send email to pulp-or-discuss+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pulp-or-discuss?hl=en.
Hi Tom the problem is (you probably don't have to worry about this) in Pulp you can have two different variables with the same name
>>> a = LpVariable('A')>>> b = LpVariable('A')
And pulp and many solvers will still solve this problem ok, but the LP format will give a different answer.
I mention this because it may explain why your results with an LP and MPS format are different.
Pulp has a (undocumented) features which will generate and manage elastic constraints for you, I will try to work up and example.
Stu
On Thu, May 10, 2012 at 4:37 AM, Tom van der Hoeven <T...@vanderhoeven.biz> wrote:
Stuart,
I don't understand the first sentence.
How can it be a problem that there is a unique relation between a name and a variable.
Can you refer to a site where the problem with the lp format is explained.
Given my problem with summation of variables and constraints on the variables and sums, I considered elastic constraints.
So my idea was to make balance equations and summations elastic.
I cannot get it working, making the elastic constraints part of a larger problem.
Is it possible to have one problem with a number of elastic constraints.
Do you have an example .py file.
Tom
Op 9-5-2012 1:23, Stuart Mitchell schreef:
There is a problem with the LP format that if Variables have identical names the lp format will consider them
the same variable and therefore have problems,
--
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.
--
Stuart MitchellPhD Engineering ScienceExtraordinary Freelance Programmer and Optimisation Guru
--
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.