Re: [Help-glpk] GLPK input format

2018-08-29 Thread Heinrich Schuchardt
On 03/12/2018 07:09 AM, aku...@tezu.ernet.in wrote:
> Hi, I am a beginner with glpk and wanted to know if we can input a .tsv
> file into glpsol.

You can read a comma separated file via the table command. See the
examples/csv folder and doc/gmpl.pdf. Tab separated files are not
supported. For larger data sets you can also use an ODBC data source.

Best regards

Heinrich

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] GLPK input format

2018-03-12 Thread Reginald Beardsley
FWIW I had problems using the csv input facility of glpsol 5-6 years ago.  So I 
wrote a program that generated GMPL files.  They were huge, but it worked very 
robustly.  I put the data in a separate file.  I was processing thousands of 
instances using shell scripts and a common model file.

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] GLPK input format

2018-03-12 Thread Heinrich Schuchardt
The table command can be used to read a csv file or to connect to any ODBC data base.

Have a look at the directories doc and examples of the source distribution.

Regards 

Heinrich
-- 
Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.On 3/12/18, 7:09 AM aku...@tezu.ernet.in wrote:
Hi, I am a beginner with glpk and wanted to know if we can input a .tsv
file into glpsol.
Suppose I have a lp problem with hundred constraints and variables of the
same order then it becomes problematic to create a .lp file manually. So,
is there a way to provide the input from an excel sheet or some other
plain-text format.

Thank you


* * * D I S C L A I M E R * * *
This e-mail may contain privileged information and is intended solely for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail in error and destroy it from your system. Though considerable effort has been made to deliver error free e-mail messages but it can not be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, delayed, or may contain viruses. The recipient must verify the integrity of this e-mail message.

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk