help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Help me please.


From: Andrew Makhorin
Subject: Re: [Help-glpk] Help me please.
Date: Sun, 10 Jun 2007 13:36:12 +0400

>   my name is Stela and I'm doing a work about Facility Location
> Problem and I'm needing to help, because I implements the math model
> using GLPK, but I couldn't to do in the correct way because the
> model isn't execute. So, I would like to know if you could help me
> showing me a model for my problem. I'm sending my math model and two
> implementation that I did.

There are many syntactic errors in your model.

facility.md:35: colon missing where expected
Context:  i != j } binary ; var y { j in MEDIANAS } >= 1 ; Minimize z

You should write 'minimize', because all keywords are case sensitive.
Otherwise the translator understands 'Minimize' as a constraint name.

facility.dat:1: character á not allowed
Context:                             set VERTICES := CeuAzul Comerci

You cannot use letters with diacritical marks in names. Only standard
ASCII letters are allowed.

facility.dat:4: syntax error in parameter data block
Context:  Mantiqueira ; set MEDIANAS := Lagoa Mantiqueira ; param p =

You should use the delimiter ':=' rather than '='.

s.t. r1 : sum {j in VERTICES : j > 0} y[j] = p;

You cannot specify condition 'j > 0', because set VERTICES contains
non-numeric items.

To avoid errors please read the language reference manual more
carefully. Also see model examples included in the glpk distribution.









reply via email to

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