{"id":27818134,"url":"https://github.com/demfier/simulation_assignment","last_synced_at":"2025-08-16T17:08:19.898Z","repository":{"id":91214992,"uuid":"117120241","full_name":"Demfier/simulation_assignment","owner":"Demfier","description":"Solution to all the assignments given in the Simulation course (IM31006)","archived":false,"fork":false,"pushed_at":"2018-01-18T13:07:08.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-01T15:50:02.536Z","etag":null,"topics":["fighter-bomber","iitkgp","im31006","inventory-management","python","simulation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Demfier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-01-11T15:56:45.000Z","updated_at":"2018-01-18T13:08:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"e76f1e47-bf7d-4766-b9a8-8438ade03670","html_url":"https://github.com/Demfier/simulation_assignment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Demfier/simulation_assignment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demfier%2Fsimulation_assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demfier%2Fsimulation_assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demfier%2Fsimulation_assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demfier%2Fsimulation_assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Demfier","download_url":"https://codeload.github.com/Demfier/simulation_assignment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demfier%2Fsimulation_assignment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270742043,"owners_count":24637504,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fighter-bomber","iitkgp","im31006","inventory-management","python","simulation"],"created_at":"2025-05-01T15:41:59.808Z","updated_at":"2025-08-16T17:08:19.889Z","avatar_url":"https://github.com/Demfier.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simulation_assignment\n\nSolution to all the assignments given in the Simulation course (IM31006)\n\n# Assignments:\n  ## 1. [Fighter-Target Problem](assignment1.py):\n\nThe initial co-ordinate of a fighter plane is given which is supposed to hit a bombing site. The bombing site is moving and its co-ordinates at 1 second interval are given. If the velocity of the bomb is 20 kmph and it is always directed towards the bombing site, determine whether the bomb will hit the bombing site successfully or not.\n\n**Note**: The bomb would be said to successfully hit the target if it is within 10km proximity of the target at a point of time.\n\n  ## 2. [Simulation of an Inventory system](assignment2.py):\n\nRetail store selling automobile types.\u003cbr\u003e\n  **Aim**: To adopt an optimum policy for ordering new supplies.\n\n  **Notations**:\n  - D = Demands per day\n  - P = Reorder point (constant)\n  - Q = Reorder quantity (fixed)\n  - S = Stock\n\n   **Rules**:\n   - *If* Stock \u003c= P, order Q items\n   - *If* D \u003e S =\u003e (sales loss) *else* =\u003e carry_over cost\n\n  **Assumptions**:\n  1. Lead Time = 3 days (If order placed on 10th, will get on 13th)\n  2. Carrying cost per day per unit = 0.75 Rs.\n  3. Loss per unit out of stock = 18 Rs.\n  4. Ordering cost per order = 75 Rs. (inclusive of transportation cost)\n  5. Demand in a day is between 0-99\n  6. There is never more than one replenishment order\n  7. Initial Conditions: S = 115 units, no outstanding order\u003cbr\u003e\n  Select the best policy out of the 5 given alternatives after operating for 180 days.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemfier%2Fsimulation_assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdemfier%2Fsimulation_assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemfier%2Fsimulation_assignment/lists"}