Skip to main content

Lane numbering - Execution Efficiency

  • May 6, 2025
  • 0 replies
  • 26 views

Chris Kuip
AIMMSian
Forum|alt.badge.img+7

One of our customers encountered a bottleneck doing lane numbering.

Given a binary parameter bp_laneExists( i_locFrom, i_locTo ), can you efficiently number the lanes?

The essence of their code looked as follows:
 

2dim loop over all lanes

As you can see, on my laptop this loop takes ~14 sec.

I was able to reduce the dimension by one with the following code:

1dim loop assigning outgoing lanes per location.

As you can see, on my laptop this loop takes ~1.7 sec.

Please find my sample project enclosed.

0 replies

Be the first to reply!


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

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