Group: sci.op-research
From: Min
Date: Monday, February 25, 2008 9:29 PM
Subject: define decision variable in OPL-CPLEX

Hello -
I have a basic question about defining decision variables in OPL-
CPLEX. I want to define the variable in a nested format like the
following

for ( var i=0; i<=4; i++) {
for ( var j=0; j<=P(i); j++){
dvar boolean a[i][j]}}

But the system thinks it is an error. How can I do this?

Many thanks.

Safety Articles | News in English | 20lbs in 30 days | Bluegrass | Usenet Newsfeeds