[Cmpl] Invalid variable name "dim"

Christopher Gross christopher.gross at unikat.uni-augsburg.de
Fri Feb 5 11:10:03 EST 2016


Hi,

when using the name "dim" as a sum variable, model generation fails with 
error message:

error (compiler): file test.cmpl line 8: syntax error, unexpected 
ASSIGN_ITER, expecting '('

Please find attached a small example where this problem occurs.

I could not find anything in the manual about "dim" being a keyword or 
reserved name. Could you please add it there or allow it as a variable name?

Thanks and best regards,

Christopher
-- 
Christopher Gross, M.Sc.

Lehrstuhl für Health Care Operations/Health Information Management

Universitäres Zentrum für Gesundheitswissenschaften am Klinikum Augsburg
(UNIKA-T), Neusässer Straße 47, 86156 Augsburg;

Wirtschaftswissenschaftliche Fakultät, Universität Augsburg,
Universitätsstraße 16, 86159 Augsburg


Tel.: +49 821 598-6454

E-Mail:  christopher.gross at unikat.uni-augsburg.de
Web:  http://www.wiwi.uni-augsburg.de/bwl/brunner/
-------------- next part --------------
parameters:
    W := 1..10;

variables:
    x[W]: binary;

objectives:
    sum{dim in W: dim * x[dim]} -> max;


More information about the Cmpl mailing list