Jump to content

Unan

OTIB Supporter
  • Posts

    8786
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by Unan

  1. 10 hours ago, redkev said:

    You must be a little sad going back over my posts seeing what I have posted , either that or you have a great memory .

    seriously though we now live in a world where anything which is slightly controversial ( slightly ) there are people who will jump on it and be offended for the so say offended . Nowadays you don’t seem to be able to have al opinion if it’s different to others you very quickly get labelled.   It was said tongue in cheek 

    You miss the irony of you jumping on every post that could be considered slightly ‘anti-pc’ with your ‘careful of the pc police jumping on everything’ posts.

    • Like 1
  2. 7 minutes ago, petehinton said:

    Managed to find a stream for it whilst I do some tidying. They’re having rings rang round them. Collins with a truly pathetic dive trying to cheat them in for a pen. 

    Link please, Sunderland Boro stream doesn’t want to work for more than 40 seconds 

  3. 2 hours ago, IAmNick said:

    You should use your order quantity you defined as the amount rather than calculating it - your current code will order 1 top every time 1 is sold which is not efficient.

    Then just wait until the order request fails but you've already increased the current inventory amount so you're out of sync :D 

    I added the Economic Order Quantity model just for you


    demand_rate = 500
    ordering_cost = 100
    holding_cost = 2
    lead_time = 2

    def compute_optimal_order_quantity():
        # EOQ formula: Q = sqrt((2 * D * S) / H)
        optimal_order_quantity = math.sqrt((2 * demand_rate * ordering_cost) / holding_cost)
        return round(optimal_order_quantity)

    def reorder_stock(current_inventory):
        optimal_quantity = compute_optimal_order_quantity()
       
        reorder_point = demand_rate * lead_time
        
        if current_inventory < reorder_point:
            shortage = reorder_point - current_inventory
            order_count = math.ceil(shortage / optimal_quantity)
            total_order_quantity = order_count * optimal_quantity

            place_order(total_order_quantity)
            current_inventory += total_order_quantity

        return current_inventory

    def place_order(quantity):
        print(f"Placing an order for {quantity} units.")

    current_inventory = 150
    current_inventory = reorder_stock(current_inventory)

     

    • Like 1
  4. Why our stock ordering isn't automatic is beyond me, it's 2023, and we aren't using an automated system. Analysing historical sales data, seasonal trends, social media analytics, customer surveys and feedback (yeah right), competitor analysis, customer segmentation, etc etc. I ran better sales campaigns as an 18 year old selling Fruit of the Loom tops online.

     

    threshold = 100
    order_quantity = 200
    def reorder_stock(current_inventory):
        if current_inventory < threshold:
            reorder_amount = threshold - current_inventory
            place_order(reorder_amount)
            current_inventory += reorder_amount
        return current_inventory


    def place_order(quantity):
        print(f"Placing an order for {quantity} units.")

  5. 8 hours ago, Mr Popodopolous said:

    I wasn't there today but.

    Playing Devil's Advocate, no excuses for pushing let alone past kids but Vardy's antics a low level incitement? Riled up somewhat, sort of predictable kid pushing aside?

     

    7 hours ago, Mr Popodopolous said:

    I suppose.

    Yeah no excuse for pushing kids but that aside give out then take it and vice versa.

    Hopefully he'll get a hot reception at Ashton Gate.

    Pushing kids?

×
×
  • Create New...