Question: Can I have an example code in MATLAB Please? Rules for pseudo code Attached Files: (19.549 KB) Read Chapter 1: Simulation and Monte Carlo. Assignment:
Can I have an example code in MATLAB Please?
Rules for pseudo code Attached Files: (19.549 KB) Read Chapter 1: Simulation and Monte Carlo. Assignment: Using the pseudo code below: (1) create the simulation for the number of skips needed for a time period. (2) create your own code that goes through various numbers of skips (K) that might be available and optimizes given the following information: Given: (a) Customer arrival ( 4 customers per day) (b) Cost of a skip ($1,000 financed at 0% interest over 5 years) (c) Rental fee for a skip ($4.00 per day) (d) Simulate for 1,000 days, x number of times to reach an expectation. (e) probability of a customer returning the skip (if rented previous day) 20% Solve for: What are the optimal number of skips that Acme should hold in inventory? Deliverables: Create a short video (Youtube or other) and attach all code that demonstrates: (1) Your pseudo code (see rules for writing pseudo code) (2) Your implemented code in MATLAB (3) Clearly show your computer program running and displaying the results as a graph in MATLAB (show optimal number skips) Input K, X, (K),A, p, n x:= X, (K) For i = 1,..., n y:= Poisson (A) r:= binomial (x, 1 p) x:= min (r+y, K) Output x Next i Rules for pseudo code Attached Files: (19.549 KB) Read Chapter 1: Simulation and Monte Carlo. Assignment: Using the pseudo code below: (1) create the simulation for the number of skips needed for a time period. (2) create your own code that goes through various numbers of skips (K) that might be available and optimizes given the following information: Given: (a) Customer arrival ( 4 customers per day) (b) Cost of a skip ($1,000 financed at 0% interest over 5 years) (c) Rental fee for a skip ($4.00 per day) (d) Simulate for 1,000 days, x number of times to reach an expectation. (e) probability of a customer returning the skip (if rented previous day) 20% Solve for: What are the optimal number of skips that Acme should hold in inventory? Deliverables: Create a short video (Youtube or other) and attach all code that demonstrates: (1) Your pseudo code (see rules for writing pseudo code) (2) Your implemented code in MATLAB (3) Clearly show your computer program running and displaying the results as a graph in MATLAB (show optimal number skips) Input K, X, (K),A, p, n x:= X, (K) For i = 1,..., n y:= Poisson (A) r:= binomial (x, 1 p) x:= min (r+y, K) Output x Next
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
