[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Passing arguments instead of an input file
From: |
Fábio Moura |
Subject: |
Re: [Help-glpk] Passing arguments instead of an input file |
Date: |
Thu, 12 Jun 2008 21:04:32 -0300 |
Hello, Michael!
I have an application written in C in which the GLPK code is embebded.
The GUI collects the problem data and writes the input file in the
Mathprog format. Then, the program core calls the lpx_read_model
function, which will load both the model and data. After an optimal
solution is achieved, I treat the output.
So, it wouldn't be needed to type the string... Instead of creating
the input file, the program would write the problem data into the
string. This way, I wouldn't need a permission to write.
The system is written in C# and, as I said, the model would be in text file.
Best regards!
FM
On Thu, Jun 12, 2008 at 7:57 PM, Michael Hennebry
<address@hidden> wrote:
> On Thu, 12 Jun 2008, Fábio Moura wrote:
>
>> I had already seen this code. The problem is that the model we are
>> implementing is a huge one, full of details and lots of different
>> variables and creating it in memory would be a probably impossible
>> task in the near future. Is it the only way, though?
>>
>> Maybe, instead of an text input file, I could pass a string (with the
>> same contents)? I would have to rewrite some code, but could be it
>> easier... Does anyone have tried it before?
>
> Even if you had the code, I suspect that
> the OS wouldn't accept such a long command.
> Even if it did, typing such a string from the
> gray memory bank might be rather difficult.
>
> Where and in what form would the problem exist before invoking GLPK?
>
>
--
Fábio Lucas Carneiro de Moura
- [Help-glpk] Passing arguments instead of an input file, Fábio Moura, 2008/06/12
- RE: [Help-glpk] Passing arguments instead of an input file, Meketon, Marc, 2008/06/12
- Re: [Help-glpk] Passing arguments instead of an input file, Fábio Moura, 2008/06/12
- RE: [Help-glpk] Passing arguments instead of an input file, Meketon, Marc, 2008/06/12
- Re: [Help-glpk] Passing arguments instead of an input file, Michael Hennebry, 2008/06/12
- Re: [Help-glpk] Passing arguments instead of an input file,
Fábio Moura <=
- Re: [Help-glpk] Passing arguments instead of an input file, Michael Hennebry, 2008/06/12
- Re: [Help-glpk] Passing arguments instead of an input file, Tor Myklebust, 2008/06/13
- Re: [Help-glpk] Passing arguments instead of an input file, Michael Hennebry, 2008/06/13