Missing Rows while writing to CSV - CSVPROVIDER

  • 1 April 2021
  • 1 reply


I’m using CSVProvider 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 ?


Best answer by MarcelRoelofs 2 April 2021, 00:24

View original

1 reply

Userlevel 4
Badge +5

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.


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

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