help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Memory usage with glpk


From: Andrew Makhorin
Subject: Re: [Help-glpk] Memory usage with glpk
Date: Thu, 28 Jan 2010 17:22:09 +0300

> I use .glp model but when I run it, it doesn #39;t write a file
> that is writing using .mod file. How I can do to write the file using
> .glp model?
> To write file I use:

> printf{c in COLS}: "%d ", w[c] > "w_ijcnn1_val";
> printf{r in ROWS, c in COLS}: "%f ", Data[r,c] > "Data_ijcnn1_val";
> printf{r in ROWS}: "%f \n", sum {c in COLS} w[c] * Data[r,c] > 
> "wtData_ijcnn1_val";

glpsol -m foo.mod --wglp foo.glp --check
glpsol --glp foo.glp -w foo.sol
glpsol -m foo.mod -r foo.sol






reply via email to

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