Coder Social home page Coder Social logo

Comments (6)

hschneid avatar hschneid commented on June 12, 2024

Will check. Give me some days :-)

from xflp.

rahul-bhardwaj11 avatar rahul-bhardwaj11 commented on June 12, 2024

Hi,

Any updates on this ?

from xflp.

hschneid avatar hschneid commented on June 12, 2024

Just a question to your example:
Packet1 is loaded at location1, correct?

Then I would expect, that you used "setUnloadingLocation()" method...

For real I need to check, if this function still works. :-D I used xflp in the past for VRP optimization, but then used it more and more in normal load planning. So, need to check, where I moved the loading/unloading thing.

The ordering of loading and unloading must be done by the input. XFLP is no inverse-VRP, which solves the question "Which sequence of loading and unloading would be necessary that all items can be loaded."

from xflp.

rahul-bhardwaj11 avatar rahul-bhardwaj11 commented on June 12, 2024

Hi,
We are already using a VRP and have the order in which the items must be unloaded. So we already know the unloading locations. We need to now set the unloading locations on the material for which we tried to use the "setUnloadingLocation()" method. This however did not give the required result we got the coordinates as 0,0,0 for all the packets. Please check this once if this method works otherwise is there any other alternative that can be used to set the ordering of the input?

from xflp.

hschneid avatar hschneid commented on June 12, 2024

Okay, you are right. Here got something lost in the past :-D

But!!!

Reason: Currently, XFLP is creating for every given item 2 new items: 1 x loading item and 1 x unloading item. Both ones are directly one after another, which leads to the situation, that the algorithm is only loading and unloading each item in sequence. LOAD1, UNLOAD1, LOAD2, UNLOAD2, ...

I will try to fix this.

from xflp.

hschneid avatar hschneid commented on June 12, 2024

Hi,

I created a branch "Fix-Locations" for your issue, which should fix the issue. So, thanks for your hint. :-)

Important is, that the 'location' must be sortable to show the algorithm the sequence of visits. And yes, a location is a visit. Hence the algorithm cannot identify, when a certain location is revisited.

This example here is not working, as you designed the problem so, that only 1 item can be loaded.

        XFLP xflp = new XFLP()
        xflp.setTypeOfOptimization(XFLPOptType.FAST_FIXED_CONTAINER_PACKER)
        xflp.getParameter().setLifoImportance(1)
        xflp.addContainer().setLength(13500).setWidth(25).setHeight(30).setMaxWeight(25000000)
        xflp.addItem().setExternID("Packet1").setLength(135).setWidth(25).setHeight(30).setWeight(25000).setLoadingLocation("1").setUnloadingLocation("5")
        xflp.addItem().setExternID("Packet2").setLength(135).setWidth(25).setHeight(30).setWeight(25000).setLoadingLocation("2").setUnloadingLocation("3")
        xflp.addItem().setExternID("Packet3").setLength(135).setWidth(25).setHeight(30).setWeight(25000).setLoadingLocation("4").setUnloadingLocation("6")

        xflp.executeLoadPlanning()
        var report = xflp.getReport()

        assert report.getUnplannedPackages().size() > 0

        XFLP xflp = new XFLP()
        xflp.setTypeOfOptimization(XFLPOptType.FAST_FIXED_CONTAINER_PACKER)
        xflp.getParameter().setLifoImportance(1)
        xflp.addContainer().setLength(13500).setWidth(25).setHeight(30).setMaxWeight(25000000)
        xflp.addItem().setExternID("Packet1").setLength(135).setWidth(25).setHeight(30).setWeight(25000).setLoadingLocation("1").setUnloadingLocation("5")
        xflp.addItem().setExternID("Packet2").setLength(135).setWidth(25).setHeight(30).setWeight(25000).setLoadingLocation("2").setUnloadingLocation("3")
        xflp.addItem().setExternID("Packet3").setLength(135).setWidth(25).setHeight(30).setWeight(25000).setLoadingLocation("6").setUnloadingLocation("7")

        xflp.executeLoadPlanning()
        var report = xflp.getReport()

        assert report.getUnplannedPackages().size() == 0

Is this helping you?

from xflp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.