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 <[EMAIL PROTECTED]> 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 mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk
