Demonstrate competence in programming fundamentals

Assignment Help Civil Engineering
Reference no: EM133397743 , Length: word count:2000

Computational Civil Engineering

Portfolio - Computational Exercise

Learning outcome 1: Demonstrate competence in programming fundamentals, including structure and best practice.

Learning outcome 2: Apply numerical methods in a programming context to solve common civil engineering problems.

Learning outcome 3: Write programs to generate data for or to solve civil engineering problems.

Learning outcome 4: Critically compare numerical methods and programmes, considering computational efficiency and accuracy of the results.

Completing your assessment

In this task, you will work with a dataset that contains information on the ingredients (the amount of cement, blast furnace slag, fly ash, water, superplasticizer, and coarse and fine aggregate in the concrete, all in kg/m3) and age of concrete specimens (in days), along with their corresponding compressive strength (MPa). Your goal is to build a model to predict the compressive strength of concrete based on its composition and age (in Part A) and implement it in a MATLAB function (in Part B). Besides the MATLAB code, you will need to produce a structured report with a flowchart or pseudocode of the algorithm underlying your analyses and a detailed discussion of the options taken to complete this task, namely regarding the structure of your code and the built-in MATLAB functions or external libraries you may have used. You must explain each step and why it is necessary. Regarding the code itself, remember that it should be well-structured, as compact as possible, and easy to read.

N.B. The MATLAB code must be saved and submitted in *.m format, and the final report must be presented in a single PDF file. All elements must be in a selectable text (i.e., screenshots are unacceptable) and must be submitted through the module's Blackboard page.

To complete Part A, you will need to:

Question 1. Load the dataset into MATLAB and visualize the relationships between each variable and the compressive strength value.
The dataset can be downloaded from the UCI Machine Learning Repository here:

Load it into MATLAB and gain a first understanding of data by calculating the average and the standard deviation of data included in each one of the columns in the dataset. Then, create a plot representing the individual correlation between each variable and the compressive strength of the concrete specimens. To enhance the readability of the output, use a plot with multiple subplots, and add the average and the standard deviation values calculated earlier to the corresponding subplot as a title. Label the axes appropriately and add gridlines and box borders to your plots.

Remember to make your code as compact as possible.
Finally, export the plot produced in this first activity as a *.JPG file and use it in your report to discuss your initial thoughts about the variables that seem to present a stronger correlation with the compressive strength of the concrete, if any.

Question 2. Expand your code to calculate the R2 score associated with each variable using a linear regression model. You'll find that some of the variables included in the dataset present a very weak correlation (i.e., a very low R2 score) and, thus, can potentially be considered non-significant and excluded from the analysis. With that in mind, create an input to prompt the user to enter the R2 score to be used to split the dataset into potentially significant and non-significant variables. Store the variables found to be potentially significant into a new array and output the number of variables included in that array to the command window and the name of those variables. Note that this output must be able to accommodate all possible results, from no variables included in the sub-dataset to all variables included in the sub- dataset. You can use the example below as a guide.

Question 3. Build a linear regression model to predict the compressive strength of concrete based on its composition and age. Calculate the R2 score of the model and output it to the command window, together with the number of variables used in the analysis. You can use the example below as a guide.

Question 4. Build a nonlinear regression model to predict the compressive strength of concrete based on its composition and age. Calculate the R2 score of the nonlinear model and output it to the command window, together with the number of variables used.

Question 5. Visualize the predicted compressive strengths against the actual compressive strengths for both the linear and nonlinear models using a scatter plot. Label the axes appropriately and add gridlines and box borders to your plot.

Question 6. Discuss in the report the performance of the linear and nonlinear regression models. Which one performs better? And why? Rerun your code for different R2 scores (i.e., sub-datasets with different sizes) and discuss the impact of the number of variables on the performance of the model. To support your conclusions, you can plot the R2 score obtained for different numbers of variables (from 1 to 8).

Now that you have already gained a thorough understanding of the data and the impact of the different parameters on the performance of the model, in Part B, you will need to:

1. Choose the best-performing model used in Part A and build a function that takes as input the cement, slag, fly ash, water, superplasticizer, coarse aggregate, fine aggregate, and age of the concrete and returns the predicted compressive strength.

2. Test your function on a few examples of concrete mixes not included in the original dataset and discuss its performance in the report.

Attachment:- Computational Civil Engineering.rar

Reference no: EM133397743

Questions Cloud

Described and documented in advance to improve positive : Continuity planning involves the process of prevention and recovery from possible threats to a type of organization. These systems help with quick recovery
What are some things you can do with a chart to make : How are charts useful in Excel worksheets? Name three types of charts available in Excel and describe with an example how each might be used.
How your system processes and transitions messages : Plan out the assessment of how your system processes and transitions messages.
Privacy policy information and data collection techniques : Assess how privacy policy information and data collection techniques from healthcare, education, and retail organizations relate to industry-specific regulation
Demonstrate competence in programming fundamentals : UBGMW9-15-3 Computational Civil Engineering, University of Bristol - Demonstrate competence in programming fundamentals, including structure and best practice
Analyze current vps analyze the new knowquest it needs : What is the main goal for the project? KnowQuest is an advanced feedback platform being redesigned and redeveloped by students at Arizona State University
Marginalized groups have to deal with in using social media : What are some of the issues that people in marginalized groups have to deal with in using social media?
Horizontal and vertical surveillance relate to social media : How do horizontal and vertical surveillance relate to social media, and what are the potential implications for individuals and society?
Explain intent or meaning of phrase defense in dept : Explain the intent or meaning of the phrase "defense in depth", especially noting what the three key elements of defense in depth

Reviews

Write a Review

Civil Engineering Questions & Answers

  Engineering ethics and ethical issue

what is the engineering ethics course where to write about any engineering ethical case and discuss the ethical issue?

  Engineering ethics and concept and cases

what is the engineering ethics case related to civil engineering with reference and discuss all the engineering ethics issues which covered the "Engineering etics concepte and cases?

  Transportation and management

In the construction management, there is a lot of procurement route that are necessary and suitable for the construction industry.

  Supporting Investment Promotion: ERNST & YOUNG

Ernst & young is currently providing support to various sectors. In this regards it was felt that if this report is able to document good practices currently being adopted or planned in ceramic sector.

  Personalized Cancer Therapy-A step forward

Cancer is the uncontrolled growth of abnormal cells in the body resulting in tumours that can be benign or malignant (cancerous cells). A proper treatment is necessary to fight with this serious disease.

  Discuss the different environmental companies

Discuss the different agencies, institutes, centers, different environmental companies that are active in UAE.

  Develop a simple urban constructed wetland design

Develop a simple urban constructed wetland design.

  Evaluate company performance in relation to GRI standards

Evaluate company performance in relation to GRI standards and comment on Stigler's theory.

  Water system design

Determine the corresponding error in the computed discharge

  Hydraulic behaviour in open channel

Describe how test flumes and associated equipment are used to assess and confirm hydraulic behaviour in open channel

  Write a paper on steel sustainability

Write a paper on steel sustainability.

  Writing case study about bridge collapse

Writing case study about bridge collapse

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