Formulate an sql query to obtain the average machining time

Assignment Help Management Information Sys
Reference no: EM131413229

Requirements for Business Intelligence Capstone Project.

A company produces four types of alarm systems -S1, S2, S3, and S4 - and supplies them to a retailer. It is contractually obligated to meet the demands of the retailer for each alarm system. Because of limited capacity the company may not have sufficient machining, assembly, andfinishingtime available to satisfy the entire demand in each period through its regular production runs. Contractual obligation requires the companyto make up the shortfall in production through special production runs at higher costs. The company aims to meet the retailer's demands at minimum cost.

LP Formulation:

Task 1:

Formulate a linear programming (LP) model that may be solved to identify the optimal production plan for the company in each time period.

Specifically, you must define the decision variables, objective function, and constraints in your LP model using the following parameters:

In each time period, for each product i ∈ (1, 2, 3, 4):

- Di is the demand (number of units required) for product i.
- CiR is the cost (in dollars) for producing each unit of product i in a regular run.
- CiS is the cost (in dollars) for producing each unit of product i in a special run.
- tim is the machining time (in minutes) required to produce each unit of product i.
- tia is the assembly time (in minutes) required to produce each unit of product i.
- tif is the finishing time (in minutes) required to produce each unit of product i.

Further, assume that:

220 hours of machining time is available for regular run.

140 hours of assembly time is available for regular run.

100 hours of finishing time is available for regular run.

LP Parameter Estimation:

You must now use available data to estimate the parameters of the LP formulated in Task 1.

Estimation of tim, tia, tif, and CiR:

The text file "production.csv" contains 7 columns: serialno, batchno, productcode, machinetime, assemblytime, finishtime, and cost. Using any DBMS of your choice, create a table PRODUCTION with serialno as its primary key and the 6 other columns as attributes and insert the 24,000 records from production.csvinto the table. Serialnois a unique identifier assigned to each unit produced by the company; productcode specifies the product type; batchno identifies the batch in which an item is produced (items are produced in batches of 10 units of a product type); machinetime, assemblytime, and finishtimespecify the time (in minutes) taken by each process (machining, assembly, and finishing) to produce a unit; the last attribute, cost, specifies the cost (in dollars) of producing the unit in a regular run.

Task 2:

Formulate an SQL query to obtain the average machining time, assembly time, finishing time, and cost per unit for each product type as estimates of the parameters tim, tia, tif, and CiR of the LP model.

In your report, you must:

1. Specify your SQL query to obtain the estimates.

2. Specify your parameter estimates in the table below. Round all estimates to 1 decimal place.

Estimates

S1

S2

S3

S4

MachineTime (tm )




 

AssemblyTime (tia )




 

FinishTime (tif)




 

Regular Cost (CiR )




 

Estimation of special run cost CiS:

It is known that the regular production cost CiR is a linear function of the machining, assembly, and finishing times for each product type. That is, CiR = βi0 + βim tim + βia tia + βif tif, where βi0 is the fixed cost incurred to produce each unit of i, and βim, βia, and βif are respectively the costs per minute for machining, assembly, and finishing each unit of product i during regular run.

Task 3:

Run regressions to estimate the coefficients βi0, βim, βia, and βif for each product i.

In your report, please explain how you obtained the data for the 4 regressions to estimate the coefficients. Then present yourcoeffient estimates in the table below. Round all estimates to 1 decimal place.

Coefficient estimates

S1

S2

S3

S4

Intercept (βi0)




 

MACHINETIME (βim)




 

ASSEMBLYTIME (βiα)




 

FINISHTIME (βif)




 

The fixed costs βi0 associated with the production of each unit of i is the same under the regular and the special run, but the special run costs per minute for machining, assembly, and finishing are double the regular run costs.

Task 4:

Use the above relationship to estimate that the cost for producing each unit of product i in a special run as CiS = βi0 + 2(βim tim + βia tia + βif tif ).

Present the estimates in the following format:

Estimation of demand Di

The text file "demand.csv" contains the retailer's sales data by region (Region1 and Region 2) for the four alarm systems over the last 40 time periods. For example, the first row shows that 334 units of S1 were sold in the Region1 in time period 1, and the last row shows that 264 units of S4were sold in Region2 in time period 40.

Create a table called DEMAND with a composite primary key made up of the attributes period, productcode, and region.Salesis the fourth attribute in theDEMANDtable. Insert all 320 records from demand.csv into the DEMAND table.

Task 5:
Extract the data needed for predicting demand for S1 by formulating an SQL query that lists the Period and the sum of the total sales for S1 from both regions in each of the 40time periods as S1demand. Similarly, formulate three more SQL queries to obtain the 40 records for S2demand, S3demand, and S4demand.

Specify the SQL queries to obtain S1demand, S2demand, S3demand, and S4demand.

Task 6:

Use the results returned by the queries formulated in Task 5 in forecasting models to predict the demands D_i in time period 41 for each product.

You should consider various prediction and forecasting methods that you are familiar with. Use the methodthat you think is most accurate in estimating demands. In your report, please present the estimates for time period 41 in the following format:

Optimal LP Solution:

Task 7:

Solve the LP formulated in Task 1 using the parameters estimated in Tasks 2, 4, and 6 to determine the optimal production plan for period 41.

Report the minimum production cost achievable, number of units of each product type to be produced under the regular and special production runs, and the resources used during regular run in the following format:

Sensitivity Analysis:

Task 8.

Perform sensitivity analysis by changing one parameter at a time (leaving all other parameters fixed at the values used in Task 7) and answer the following questions.
(a) By how much does the total production cost change as the demand for each product type changes by 1 unit?
(b) At most how much should the company be willing to pay to
(i) Increase the availability of machining time by one hour during regular run?
(ii) Increase the availability of finishing time by one hour during regular run?
(iii) Increase the availability of assembly time by one hour during regular run?

Quality Control

The text file "defective.csv" contains 2 columns. The first column defectiveid is an identifier, and the second column serialno specifies the serial number of a defective product. Create a table DEFECTIVE with defectiveid as its primary key and insert all 1639 records from defective.csvinto the table. Note that serialno in the DEFECTIVEtable is a foreign key that references the primary key in the PRODUCTION table.

The text file "quality.csv" contains 5 columns containing data from quality control tests run on 2400 batches of items produced. Create a table QUALITY with BatchNo as its primary key and test1, test2, test3, and test4 as its other 4 attributes. Insert all 2400 records from quality.csv into the table. Note that batchno in the PRODUCTION table is a foreign key that references the primary key batchno in the Quality table.

Any batch that containsmore than one defective items is deemed to be ofpoor quality; a batch with at most one defective item is considered to be of good quality.

Task 9:

Formulate an SQL query that lists all 5 columns from the QUALITY table and adds a derived column batchquality that contains "Poor" if the batch is of poor quality (contains at least 2 defective items) and "Good" otherwise.

In your report, include:
1. The SQL query for task 9
2. The results of the query in a file qualityInput.csv.

Task 10:

Partition the data obtained from Task 9 to train and test a Classification Tree that predicts batchquality based on values of the featurestest1, test2, test3, and test4. Use 80% of the observations for training and the remaining 20% for testing.

In your report:
1. Specify the number of training and test examples that you used.
2. Specify the rules that you obtained in Task 10 in the canonical form:
IF .... THEN ...
3. Present the classification accuracy of this set of rules for the training set and the test set by specifying confusion matrices of the form:

Note that there should be one confusion matrix for the training data and one for the test data.
If you wish, you may also use other prediction and classification methods (such as Logistic Regression, Neural Nets, and Discriminant Analysis) to classify batchquality based on values of the featurestest1, test2, test3, and test4, and comment on the classification accuracy of these methods.

Attachment:- Suggestions.rar

Reference no: EM131413229

Questions Cloud

Examine the levels of uncertainty and complexity for project : Examine the levels of uncertainty and complexity for the project. Analyze the type of project learning that is addressed. Justify your response. Examine the organizational mind-set and explain its impact on the project.
Briefly discuss the ways a realistic budget : Briefly discuss the ways a realistic budget will benefit the owner of Babycakes versus having no budget at all. Be sure to use Babycakes as the company and any specific product details in your explanation.
Define in psychology terms - discreet and continuous measure : Define in Psychology Terms - Discreet and Continuous Measure. In what situation is it best to use a discreet measure? In what situation would it be best to use a continuous measure? Explain your responses
Discuss different roles that forensic psychologist can take : A description of the educational levels required and recommended (i.e. what can a MA level forensic psychologist do, versus a Doctorate level professional). Different roles that a forensic psychologist can take
Formulate an sql query to obtain the average machining time : Formulate a linear programming (LP) model that may be solved to identify the optimal production plan for the company in each time period - Formulate an SQL query to obtain the average machining time, assembly time, finishing time, and cost per unit..
Identify research question and research methods for article : For this assignment you are provided two articles from leading academic business journals. In a 2-3 page, double-spaced paper, please identify the research question, hypothesis, and research methods for each article.
Discussing post-traumatic stress disorder : Write a 200 word paper discussing the following disorder: Post-traumatic stress disorder
Derive minimum state diagram of a clocked sequential circuit : Derive the minimum state diagram of a clocked sequential circuit that recognizes the input sequence 1010. Sequences may overlap.
Identify the behavior the mother is trying to reinforce : Write a 1,050- to 1,400-word paper discussing the following: Identify the behavior the mother is trying to reinforce. Identify the possible functions of the behaviors

Reviews

len1413229

3/4/2017 12:24:32 AM

need to run the sql queries and provide answers for tasks 1 to 5 Note that there should be one confusion matrix for the training data and one for the test data. If you wish, you may also use other prediction and classification methods (such as Logistic Regression, Neural Nets, and Discriminant Analysis) to classify batchquality based on values of the features test1, test2, test3, and test4, and comment on the classification accuracy of these methods.

Write a Review

Management Information Sys Questions & Answers

  Create a mib module for your company

Create a MIB module for your company. The objective is to find the inventory of any specific product while sitting in your office as president of the company.

  Accounting information systems help1 if ais are so vital to

accounting information systems help1. if ais are so vital to business success why do so many businesses have problems

  Justify the need of the ieee 802 standard used in networking

Evaluate the three (3) standard organizations including IEEE, ISO, and ANSI to determine the most important for communication technology. Take a position on the need for a federal regulating body of standards such as NIST. Include supporting..

  Conduct an internet search looking for tips

Conduct an Internet search looking for tips for Microsoft Office 2010 (e.g., tutorials, tips, etc.). Which search engine did you use, and why and What specific search terms did you use?

  Ticket issing system for rail travel

Find one of more omissions adn ambiguities - Ticket issing system for rail travel: Omissions, ambiguities, problems

  How the mis functional area can leverage and data

Write a two-page paper explaining how the MIS functional area can leverage, data, information, to gain a competitive advantage

  Prepare a risk assessment report with information on threats

Prepare a Risk Assessment Report (RAR) with information on the threats, vulnerabilities, likelihood of exploitation of security weaknesses, impact assessments for exploitation of security weaknesses, remediation, and cost/benefit analyses of reme..

  Change in the traditional accounting information system

Describe the need for change in the traditional accounting information system architecture using examples that you have encountered through your work experience.

  It governance - a hands on approach is the best way

IT Governance - A Hands on Approach is the best way-Prepare a 4- 5-minute one-point argumentative speech present. ation on a topic related to the IT profession or of interest to IT Professionals

  Discuss global information systems

Discuss global information systems and examine the issues regarding global efforts in the information system industry.

  Human resource information systems

Review the human resource information systems (HRIS) along with other HR web pages in the intranet section for Kudler Fine Foods in the Virtual Organizations

  Describe and compare the six sources of software

COIT20248 Information Systems Analysis and Design. Describe and compare the six sources of software. How can you decide among various off-the-shelf software options? What criteria should you use? Do you think that in the given case study you can us..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd