Declaring 3 sets in GLPK->syntax error in literal set -


i have small code:

 param n, integer, > 0; # number of clients param m, integer, > 0; # number of facilities param g, integer, > 0;  set := 1..n; set j := 1..m; set g := 1..g;  param d{i in i, j in j};/* distance client factory j*/ param w{i in i, j in j};/* distance client factory j*/ param l{j in j}; # distance factory j factory 1 param f{j in j}; # cost of open factory in j param s{i in i, g in g}; 

the problem on s, says drdrd.mod:13: syntax error in literal set , if change g in g j in j, ok. not possible have 3 differents sets?

and question not solve, if put instead of in i, 2 in (because want take account first 2 numbers ) says same error message.

thanks time.

g defined parameter in

param g, integer, > 0; 

so can't use index name in

param s{i in i, g in g}; 

to fix rename index (or parameter):

param s{i in i, gg in g}; 

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -