[Cmpl] Error reading csv file
Mike Steglich
mike.steglich at th-wildau.de
Wed May 7 14:35:26 EDT 2014
Hi Cesare,
If you use Coliop then you have to specify the full path to your csv file.
e.g.: c[] := readcsv("c:\documents\costi.csv");
This is not necessary if you use CMPL on the command line.
Cheers,
Mike
> Am 07.05.2014 um 19:13 schrieb Cesare Bassu <cesare.bassu at gmail.com>:
>
> Hi,
>
> I'm trying to read data from a csv file but it doesn't work.
>
> I do:
>
> parameters:
> customers:=1..2;
> c[] := readcsv("costi.csv");
>
> and readcsv is: 0;81;0;7
>
> and they are in the same directory but coliop solver says:
>
> create model instance ...
> CMPL model generation - failed
> error (input/output): file esempo.cmpl line 3: Input file 'costi.csv' not found
>
> What could it be??
>
> Cesare Bassu
>
> _______________________________________________
> Cmpl mailing list
> Cmpl at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cmpl
More information about the Cmpl
mailing list