Question

Missing Rows while writing to CSV - CSVPROVIDER

  • 1 April 2021
  • 1 reply
  • 17 views

Badge

I’m using CSVProvider 1.1.1.2 for writing outputs to CSV.  While writing, certain rows are missing in the csv file where the variable values were 0.  When checking in AIMMS (right click variable → Data) I see the domain still has that index but empty value (which means it is 0).  However, while writing to CSV the index where variable values were 0 is missing.  Is it possible to either include a blank row or with values 0 for the index position where the variables were 0 ?


1 reply

Userlevel 2
Badge +1

You may want to take a look at the DataExchange library, which also supports reading and writing CSV files. The DataExchange library does support a number of features, like force-dense and dense-children, which allows you to control whether or not to write data for default values.

Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator