Good afternoon,

   

  I'm trying to do a math model using glpk, but it isn't being trivial because 
the syntax applied in the glpk. I don't understand a message of syntax errors 
because I don't see how to error. I tried to understand the manual, but some 
things aren't specified in detail, for example I use the conditional 
if..then..else, but I can't put the form correct because I don't if to need use 
parenthesis. So I hope that you can look at my implementation and say me where 
error are.

   

  p.s:The problem that I'm implements is the facility location problem

   

  Thanks.





 #32; 



Novo Yahoo! Cadê? - Experimente uma nova busca. 
Good afternoon,
 
I'm trying to do a math model using glpk, but it isn't being trivial because the syntax applied in the glpk. I don't understand a message of syntax errors because I don't see how to error. I tried to understand the manual, but some things aren't specified in detail, for example I use the conditional if..then..else, but I can't put the form correct because I don't if to need use parenthesis. So I hope that you can look at my implementation and say me where error are.
 
p.s:The problem that I'm implements is the facility location problem
 
Thanks.


Novo Yahoo! Cadê? - Experimente uma nova busca.
set VERTICES:= 1 2 3 4 5 6 7;

param p:= 2;

set MEDIANAS:= Uniform17();

set CLIENTES:= VERTICES - MEDIANAS;


param distancias :                1        2         3       4     5     6      
   7    :=
                      1           0.0      2.8       5.7     2.2   7.8   1.4    
   7.3
                      2           2.8      0.0       2.8     3.0   5.0   1.4    
   5.0
                      3           5.7      2.8       0.0     5.4   2.2   4.2    
   3.6
                      4           2.2      3.0       5.4     0.0   7.2   2.2    
   5.8
                      5           7.8      5.0       2.2     7.2   0.0   6.4    
   3.2
                      6           1.4      1.4       4.2     2.2   6.4   0.0    
   6.1
                      7           7.3      5.0       3.6     5.8   3.2   6.1    
   0.0;


param ponderação: 1       1
                  2       1
                  3       1
                  4       1
                  5       1
                  6       1
                  7       1;

end;

Attachment: FLP.md
Description: Binary data

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

Reply via email to