What is the reason why the load dimensions values are int32

Questions refering to the Optiflow based API within PTV Developer (launched on 20.12.2023)
Post Reply
CAPcargo
Posts: 40
Joined: Tue May 19, 2015 12:53 pm

What is the reason why the load dimensions values are int32

Post by CAPcargo »

Hi,

Wouldn't it make more sense for the real world to use double instead?

optiFlow_Doc_Order_Qty.jpg
TomDeDecker
Posts: 3
Joined: Tue Aug 22, 2023 2:32 pm

Re: What is the reason why the load dimensions values are int32

Post by TomDeDecker »

Hi,

While admittedly that would make more sense, the current implementation does indeed require you to specify whole numbers.

The underlying reasons are purely technical (performance, dealing with rounding errors...) - and based on what I could gather from the team, surprisingly difficult/annoying to change.
Depending on what units the base data are in, our current recommendation is to scale up the values if needed, to arrive at integers for the various loads. Naturally, this means the same needs to happen with the corresponding vehicle capacities, in order for the plan to work.

I've challenged this matter with the team, and we will discuss this further internally.
But for now, we will need to keep things wholesome.

Kind regards,

Tom
Post Reply