Skip to main content
Solved

How much data can be plotted in Histogram of AIMMS?

  • 22 March 2022
  • 2 replies
  • 40 views

Hi,

 

I’ve been trying to run some Monte Carlo simulations, but apparently if the number of runs is more than 500, the Histogram cannot be made. AIMMS returns some arithmetic error that I don’t understand. How can we increase the number of data that Histogram can make?

Thanks,

Zulfan

2 replies

The procedure HistogramCreate has an optional argument sample_buffer_size with a default value of 512.

You should override that value to allow more data points. 

e.g. in your procedure CreateHistogramMonteCarlo use;

HistogramCreate(HistogramID, sample_buffer_size : NumberOfRun);

Userlevel 1
Badge +4

Hi @Roel , thanks a lot for this. I saw and omitted this argument in the beginning as the name is not very clear to me. 

Thanks a lot. 

Reply


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

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