[Scip] Define parameters in ZIMPL

Julio Rojas jcredberry at gmail.com
Fri May 14 19:32:00 MEST 2010


Dear all, I would like to define the matrix of parameters from a set. I have
tried with the following:

set p := {.1,.2,.3};
param s[<i,j> in e2] := p[i in {1..card(p)}] default 0;
maximize sim: sum<i,j> in e2: s[i,j]*y[i,j];

The following message appears:

*** Error 800: File problem.zpl Line 7 : syntax error, unexpected SETSYM
*** param s[<i,j> in e2] := p[<i> in {1..card(p)}] default 0;
***                         ^^^

Is there a way to do this? Thanks in advance.
-------------------------------------------------
Julio Rojas
jcredberry at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.zib.de/mailman/private/scip/attachments/20100514/1c27a5f3/attachment.html


More information about the Scip mailing list