Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorporate inspection effectiveness as a simulation parameter #204

Open
mshukuno opened this issue Feb 1, 2024 · 2 comments · May be fixed by #206
Open

Incorporate inspection effectiveness as a simulation parameter #204

mshukuno opened this issue Feb 1, 2024 · 2 comments · May be fixed by #206
Assignees
Labels
enhancement New feature or request

Comments

@mshukuno
Copy link

mshukuno commented Feb 1, 2024

The effectiveness of an inspection is an important aspect of cargo inspection for pests at borders. This is often overlooked in tools designed to optimize inspections. We are adding this to the model to more accurately and realistically simulate cargo inspections.

@mshukuno mshukuno added the enhancement New feature or request label Feb 1, 2024
@mshukuno mshukuno self-assigned this Feb 1, 2024
@mshukuno
Copy link
Author

@wenzeslaus Would you please explain the variables? I am looking at inspection.py "box or boxes" inspection and having a bit of confusion. Once "detected" is set to True, it seems to never change.

elif unit in ["box", "boxes"]:

  • boxes_opened_completion: Number of boxes to inspect (sample size).
  • boxes_opened_detection - (???)
  • items_inspected_completion - boxes_opened_completion * inspect_per_box
  • items_inspected_detection - (???)
  • contaminated_items_completion - Number of contaminated items in a box
  • contaminated_items_detection - (???)

@wenzeslaus
Copy link
Member

The difference between *_completion and *_detection variables is that completion is how many boxes were open (items inspected, ...) total while detection is how many would be opened (inspected, ...) if we stopped inspecting when seeing first contamination.

Here is an example:

[.x.x..]

. clean
x contaminated

items inspected (to) completion = 6
items inspected (to first) detection = 2

contaminated items detected (to) completion = 2
contaminated items detected (to first) detection = 1

I hope this help. If not let's meet.

mshukuno added a commit to mshukuno/popsborder that referenced this issue Feb 26, 2024
@wenzeslaus wenzeslaus linked a pull request Feb 29, 2024 that will close this issue
@wenzeslaus wenzeslaus linked a pull request Mar 11, 2024 that will close this issue
@wenzeslaus wenzeslaus linked a pull request Mar 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants