Eric, it worked, i had to many B instead of P to create the list, thanks I have something for you to read:
Dear Eric,
I was hoping i can explain what the end goal of my questions is, maybe you can help me with that. I am willing to pay for your efforts, so hope you have time to read this.
A shipping Line is a company with ships. Each ships has it owns specs, such as Max quantity tob e loaded.For example.
If a job ( cargo) comes up, it always has a loading port and a discharge port, quantity and the period when it needs to be loaded. Based on the Mmax of the vessel we already can find out what cargo combination can be made. Let’s say I have three identical vessels, only the position of the vessels is different. So we create three columns of cargo options.
We match in the background what vessel can take what cargo. If the cargo is bigger than 10.000 tons, i twill not show up in the list of the vessel that can only take 10.000. So we create three column(one for each vessel) and show the cargo that can be loaded by that particular vessel.
Now we matched the cargo tot he vessel based on quanity, distance or profit. This gives the operator a good view what action to take. But it has to go one step up.
We need to find the sequence based on laycan period.
A laycan period, date, week is the periode where the vessel needs to be present for loading.
When looking at above image, you can see that the laycan period follows eachother, so these 4 cargoes would be executable one after another. POL is port of loading, POD is port of discharge.
If a selection would be made based on laycan period, quantity, one could get a sailing sequence.
With the sailing sequence we could calculate the distance between two ports and cumulate them at the end. Each cargo will have its expensens and revenu, so profit of the sequence can be calculated.
But what if another cargo was entered in the column, with a laycan date and location before Rotterdam. Then the sequence would become different and we have to calculate again and see what profit this would make. At the end we calculate a top 10 with seqences, quanities and profits. This for each vessel. In the beginning we have an empty ship, so the combinations are endless, but if a cargo is booked that means that it will limit the combinations, the more is booked the lesser the options.
One can see that the same cargo can be loaded on many different vessels, depending on the vessels criteria. Once the cargo is booked ( mean a contract between shipping line and cargo owner) the cargo has tob e shipped, but not necesarely by that vessel. When it is booked and connected to vessel no. 1, i twill dissapear from the other vessels list, a recalculation has to be done.
2500 1000 1500
So, when loading all, we can calculate when the vessel is full, for example after Rotterdam the vessel with a max intake of 5000 is full, but we have to discharge in Bremen the first parcel of 2500 and re-load another parcel of 2500, so vessel full again, until after discharge the remaining cargo.
So we calculated the best option from vessel number one and suddenly another cargo pops up in the same column Then the calculation has to be re-done.
Here we have again multiple options depending on the new cargo. The sequence can be different , the intake can be different. Everytime the best options will be on top.
Of course this depends on profit, quantiy or distance. Best op top.
Distance between two ports needs to be calculated. So everytime a sequence changes the new distance from A to B to c to d etc. needs to be calculatedFor now we can take fixed numbers but we calculate on the fly with an API.
Now the question arises, can you help me building such an application. And if you can how much would it costs to help me on this?
Thanks enjoy your day.
Best regards Will