help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] filetype .lp


From: Xypron
Subject: Re: [Help-glpk] filetype .lp
Date: Mon, 14 Nov 2011 20:35:09 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20111010 Icedove/3.1.15

Dear Asma,

the CPLEX file format is not aware of sets and indices. The only way you can indicate indices is by using concatenated variable names like a(1,2).

See glpk-4.47/doc/glpk.pdf, section CPLEX LP Format.

Best regards

Xypron



On 14.11.2011 17:38, esma mehiaoui wrote:
otherwise how to specify the data and variable with two dimensions in an .lp file.
 
I look at this on the internet but there are only a simple examples.
i need for example to represent one set (set MySet:=1..5;) and an variable (var Y{i in  MySet, j in  MySet: i!=j} >=0, integer;).
 
Could somebody help me please?
 
Regards
Asma
_______________________________________________ Help-glpk mailing list address@hidden https://lists.gnu.org/mailman/listinfo/help-glpk


reply via email to

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