Skip to main content
Solved

How much data can be plotted in Histogram of AIMMS?

  • March 22, 2022
  • 2 replies
  • 52 views

Forum|alt.badge.img+4

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

Best answer by Anonymous

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);

2 replies

  • Answer
  • March 28, 2022

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);


Forum|alt.badge.img+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. 


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

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