Question: 4 . I need the matlab code please: A computer system has ND disks on which NF files need to be stored. The capacity of

4. I need the matlab code please: A computer system has ND disks on which NF files need to be stored. The capacity of disk \( i \) is \( C_{i}\) bytes, the size of file \( j \) is \( S_{j}\), the arrival rate of requests to file \( j \) is lambda, and the average service time of a request to file \( j \) when it is stored on disk \( i \) is \( s_{i, j}\). Assume ND =2. Find the optimal allocation of files to disks that minimizes the difference in utilization between the two disks. See details below.
Disc Capacity (GB)
130
235
Problem notes: Store each of the 5 files on the 2 discs. Objective: allocate the files properly to "minimize the difference in utilization" between the two discs. What does this mean? We need to define the objective function.... How do you define it? This is the major part of the problem.
Use the genetic algorithm approach, if you can. Can also evaluate a number of different combinations in MATLAB.
Lambda * service time = total amount of time required for disc operation for that file.
minimize difference in time of utilization between the two discs
Question: Can any file be stored on both discs to give an advantage? (given lamda for each disc)
Approach: Simulate disc utilization for 1 second to determine operation time for each disc. (1 sec)*lambda*service time [=] seconds of operation
4 . I need the matlab code please: A computer

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!