help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] how to read files in *.txt format


From: Ricardo A. Castro
Subject: [Help-glpk] how to read files in *.txt format
Date: Tue, 12 Oct 2004 01:27:38 -0300 (EST)

Dear Andrew,

I'm begining to apply LP problem to my research (My 1th time in a real LP
problem and program) and It's just a part of my work, please I thank you
very much about your reply.

So, I have a difficulty finding a solution to my LP problem. Here are some
details.
Let z be the object function
z=[0 0 0 ... 1] [x1
                 x2
                 :
                 xn
                 c]
(loosely speaking, z = c)
subject to the linear constraint
[A]*[x] - [b] + c*[e] = 0
and the variable boundaries
    0 =< c =< 1
[x_min] =< [x] =< [x_max],
where ''A'' is a square matrix of n=2000x2000 elements, ''b'' is a vector
of 2000 elements, ''c'' is a constant (real number), "e" is a vector of
2000 elements, and "x" is a vector of 2000 elements (which is what I am
looking for!). I would like to know the sub-routine (or function) used to
find "x", considering that the matrix "A" is in text format (A.txt); on
the other hand, the vectors "b" and "e" are "b.txt" and "e.txt", while
''x_min'' and ''x_max'' are "x_min.txt" and "x_max.txt", in text format,
respectively. I believe this has been done already by you or somebody
else.

Thank you again everyone for your helping,

PhD student Ricardo Castro
University of Sao Paulo
Physics Intitute
Brazil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]