Git Product home page Git Product logo

Comments (2)

geraintpalmer avatar geraintpalmer commented on August 11, 2024

Dear @lec00q

You are correct, and this is the expected behaviour. In Ciw, "batching" only applies to external arrivals. Arrivals from another node are not batched.

I am note sure immediately how to model the behaviour you want. It may be possible to use Ciw's custom node feature: https://ciw.readthedocs.io/en/latest/Guides/behaviour.html to overwrite the node's release methods (line 394 in https://github.com/CiwPython/Ciw/blob/master/ciw/node.py), so that if there are less than three individuals reasy to be released it passes, but once there are 3 individuals waiting to be released then all three are released simultaneously.

I hope that helps somewhat.

from ciw.

lec00q avatar lec00q commented on August 11, 2024

Dear @geraintpalmer,

thank you for your suggestion and sorry for the delayed answer. I have managed to obtain the behaviour described by inheriting from the custom node, as you said.

However, it came out a bit complicated and I had to modify quite a lot of methods: begin_service_if_possible_change_shift, begin_service_if_possible_accept, begin_service_if_possible_release, detatch_server. Not sure if I have made something wrong and if it could have been easier (probably!) but if you need some hints on how I did let me know. I think that for many real cases this can be a very nice add-on functionality.

Thanks!

from ciw.

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.