<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" id="owaParaStyle" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
</head>
<body dir="ltr" tabindex="0" style="">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:#000000; margin:0">
I'm just getting started with CMPL and have what seems like a rather basic question. Given the following CMPL model how what should the csv for r be formatted:
<div><br>
</div>
<div>&nbsp; &nbsp; parameters:</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; plants := &quot;seattle&quot;, &quot;san_diego&quot;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; markets := &quot;new_york&quot;, &quot;chicago&quot;, &quot;topeka&quot;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; r[plants, markets] := readcsv(&quot;r.csv&quot;);</div>
<div><br>
</div>
<div>Using the following in r.csv:</div>
<div><br>
</div>
<div>
<div>2.5,1.7,1.8</div>
<div>2.5,1.8,1.4</div>
</div>
<div><br>
</div>
<div>I get the following errors:</div>
<div><br>
</div>
<div>
<div>
<div>error (interpreter): file transport.cmpl line 9: Count of elements for the 1. index of 'r' is wrong</div>
<div>error (interpreter): file transport.cmpl line 9: Count of elements for the 2. index of 'r' is wrong</div>
</div>
</div>
<div><br>
</div>
<div>Using the following in r.csv:</div>
<div><br>
</div>
<div>
<div>new_york,chicago,topeka</div>
<div>seattle,2.5,1.7,1.8</div>
<div>san_diego,2.5,1.8,1.4</div>
</div>
<div><br>
</div>
<div>
<div>I get the following errors:</div>
<div><br>
</div>
<div>
<div>error (interpreter): file transport.cmpl line 9: Count of elements for the 1. index of 'r' is wrong</div>
<div>error (interpreter): file transport.cmpl line 9: Count of elements for the 2. index of 'r' is wrong</div>
<div>error (interpreter): file transport.cmpl line 9: Count of elements for the 2. index of 'r' is wrong</div>
<div>error (interpreter): file transport.cmpl line 9: Count of elements for the 2. index of 'r' is wrong</div>
</div>
<div><br>
</div>
<div>I've tried a number of other variations with no success. I've seen the readcsv examples that use an unbounded array (r[,]) but for would prefer to use bounded arrays. Any help would be welcome.</div>
<div>
<div></div>
</div>
</div>
</div>
<b>This email is intended only for the use of the individual(s) to whom it is addressed. If you have received this communication in error, please immediately notify the sender and delete the original email.</b>
</body>
</html>