Hello Shaghaeygh,

your mail had to be forwarded manually because you are not subscribed to
GLPK help list, cf.
https://lists.gnu.org/mailman/listinfo/help-glpk

In the GMPL language you can use the table statement to write the
results of your models LP1 and LP2 to CSV files or to a SQL database.

In LP3 you can read that data.

The table statement is described in doc/gmpl.pdf of the source
distribution available at ftp://ftp.gnu.org/gnu/glpk/glpk-4.55.tar.gz

Examples are available in examples/sql and examples/csv.

Please, also have a look at the following pages:
https://en.wikibooks.org/wiki/GLPK/ODBC
https://en.wikibooks.org/wiki/GLPK/Table_Statement

Best regards

Heinrich


On 05.09.2015 22:27, Andrew Makhorin wrote:
> -------- Forwarded Message --------
> From: Shaghayegh Mokarami <[email protected]>
> To: [email protected]
> Subject: A Request
> Date: Sat, 5 Sep 2015 18:55:19 +0430
> 
> Hi
> 
> I'm not very familar to GLPK.
> 
> 
> My problem contains two LP model, LP1 and LP2 which be solved
> separately.
> 
> The variables of model LP1 and LP2 are defined as x[i,j] and y[i,j],
> respectively where
> 
> (i,j) in E, and 
> 
> set E within (V cross V);  
> 
> set V := 1..n;  
> 
>  
> 
> I want to use the optimum solutions of LP1 and LP2, in third LP model
> LP3 as parameters. 
> 
> For example, LP3 contains these commands: 
> 
> param x{(i,j) in E}; 
> 
> param y{(i,j) in E};
> 
>                                                                
> 
> var z{(i,j) in E};                                 
> 
>  
> 
>  
> 
> maximize Val: sum {(i,j) in E} (x(i,j)+ y(i,j))* z(i,j);
> 
>  
> 
> How should I save the optimum values of  x[i,j] and y[i,j] such that
> they can be read in LP3 as parameters.
> 
> 
> Thank you in advanced 
> 
> 
> Shaghayegh
> 
> 
>  
> 
> 
> 
> 
> 
> _______________________________________________
> Help-glpk mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/help-glpk
> 


_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to