机械工程学代写ASSIGNMENT-ME 465代写-Lab代写
机械工程学代写assignment

机械工程学代写ASSIGNMENT-ME 465代写-Lab代写

ME 465

Lab 8: Advanced Tagging and Solution Reliability

机械工程学代写ASSIGNMENT After all of the responses are tagged, it is strongly recommended that you verify the accuracy of the tags.

Goals

The primary goals of this exercise are to:

  1. learn how to use advanced tagging methods to efficiently setup an optimizationstudy,
  2. explore a different way of defining an optimization study to increase the reliabilityof the solution.

Tasks  机械工程学代写ASSIGNMENT

Follow the steps provided in Exercise 9 below to perform a new constrained optimization study.

After completing the exercise, perform a second optimization study using a different optimization problem statement:

Objective: maximize Ball Distance To Tree

Constraints: Ball Distance to the Hole ≤ 3 yards

First Impact Distance To Green ≤ 10 yards

The above problem statement emphasizes the reliability of the design. By maximizing the Distance To Tree, we are reducing the chance that the ball will hit the tree if the shot is not executed exactly as prescribed. At the same time, we are still enforcing a high level of shot quality (less than 3 yards from the hole).

Turn In  机械工程学代写ASSIGNMENT

Your lab report should be typed. Use a 12 pt font and 1 inch margins. On the first page, include the pledge in the form below:

Pledge: I have neither given nor received any unauthorized assistance on this lab assignment.

Signature:                                                  Print Name:                                              

Answer the following questions in short answer format.

  1. From the first problemsolved:

a.Find three designs that are near the hole and on the low side of the hole.List their design ID’s.

b.Are there many designs that are near the hole and on the high side of the hole? Why do you think this is thecase?

2.In terms of the objective and constraint values found during the two studies,describe the benefits of each of the two problem statements.

3.The two different optimization statements described in this exercise yield different results. Both are valid problem statements. The best one to use depends on the current situation. Since both BallDistanceToHole and BallDistanceToTree are very important objectives, how could you account for both of these in the same problem statement? Write a new optimization problem statement that illustrates this.  机械工程学代写ASSIGNMENT

4.Provide a new example of an engineering problem in which the performance of the design depends very strongly on the reliability of meeting at least one of the constraints. For this problem, provide at least two different optimization problem statements and describe the expected benefits of each one.

Exercise 9: Advanced Tagging Methods

To refresh your memory regarding using HEEDS MDO with SwingSim, in this exercise we will solve a familiar constrained optimization problem starting from scratch.

To make the task more interesting, we will use some of the advanced tagging methods available in HEEDS MDO and extract some additional data from each evaluation that will help us better interpret the final results.

Let’s start by describing the problem we are going to solve. We will use variations of this problem throughout the day, so it is important to understand it well.

Imagine that a really mean groundskeeper planted a large tree in the middle of the fairway of your favorite golf hole. So your shot must go around or over the tree, but not through it. At the Red Cedar Hills golf course, this situation exists at Hole #2.

Let’s also imagine that the grass far away from the green is very high, so the ball must land (first impact) close to the green.

The optimization statement for this problem can be written as: Objective: Minimize BallDistanceToHole (achieve a hole-in-one) Constraints: BallDistanceToTree ≥ 10 yards

FirstImpactDistanceToGreen ≤ 10 yards

Variables:  

Min

 

Variable Name

 

Max

 

Baseline

 

Resolution

100 ≤ TeeBallSpeed ≤ 150 129 501
20 ≤ TeeLaunchAngle ≤ 35 25 151
-30 ≤ TeeTargetAngle ≤ -12 -18 181
0 ≤ TeeBackSpin ≤ 6000 3000 6001
1000 ≤ TeeSideSpin ≤ 2000 1500 1001
Model: SwingSim: Hole 2

In addition to the responses that are used as objectives and constraints, we can define, tag and monitor the values of other responses that may be useful in evaluating our final designs, even if these measures are not part of the optimization problem statement. In the current exercise, we will track the final coordinates of each shot so that we can determine whether the putt shot will be uphill or downhill. An uphill putt that is relatively straight is considered to be the easiest type of putt.  机械工程学代写ASSIGNMENT

Because you are now very familiar with the HEEDS MDO user interface and the process of setting up a design study, very limited instructions are provided below. If you get stuck, refer to the detailed instructions for similar steps in Exercises 2-5 of the HEEDS MDO Introduction Exercises Guide.

Step 1: Creating a new HEEDS MDO project

Build a new project from scratch.

  1. Save the new project to the working directory for Exercise9:

…\HEEDS_MDO_Advanced_Course_Projects\E9_Advanced_Tagging\E9_Working_Directory

  1. Name the project:E9_Advanced_Tagging.
机械工程学代写assignment
机械工程学代写assignment

Step 2: Defining the Analysis

  1. Define the process automation steps for simulating the golf shot in the Process

The batch command for SwingSim and the input/output files we will use in the current study are: Batch execution command: SwingGui.exe input_filename -swing output_filename

Input file name: Hole2_Tee_Shot_in.txt  机械工程学代写ASSIGNMENT

Output file name: Hole2_Tee_Shot_out.txt

  1. Link the SwingSim screen shots png to this analysis so that we can use them during post- processing.
  2. Save your project.

Step 3: Defining the Project Variables and Responses

Normally, we would manually add the variable and response names in the Parameters tab, and then tag the files by marking these in the Tagging tab. STOP!

Instead, let’s use the auto-tagging feature in HEEDS MDO to perform both of these tasks with only a few clicks. We can use this feature whenever the input or output files are formatted such that the variable or response value is either below or to the right of the variable name. In the SwingSim files, the variable values are to the right of the variable name.

Here are the steps for auto-tagging the current model:

1.Right-click the input file (either from the tree view or from the Files sub-tab in the Process tab) and select AutoTag.

The Automatic File Tagging Wizard appears.  机械工程学代写ASSIGNMENT

  1. Because the input file is a delimited file, select Find delimitednames.
  2. From the Location pull-down menu, choose Number right ofname.
  3. ClickNext.

HEEDS MDO parses the file and identifies candidate parameters that can be used as design variables.

  1. Selectthe parameters that correspond to the five design variables in the current study.

  1. ClickNext.
  2. You can either enter the variable details in this panel or click Finish and enter the variable details in the Parameters
  3. Click Finish to exit the Automatic File Tagging Wizard.
  4. Review the definition of the variables in the Parameters If you did not complete the variable details in the Automatic File Tagging Wizard, complete these now according to the optimization problem statement provided above. All of the variables will be treated asContinuous.  机械工程学代写ASSIGNMENT
  5. Repeatthe process above to create and tag the Responses. Be sure to start by right-clicking the output file. There are no property details to define for responses.

As discussed above, we would also like to track the final coordinates of each shot so that we can determine if the subsequent putt shot will be uphill or downhill, straight or curved. Let’s define these responses here. In Step 4, we will tag these responses using the scripting approach.

  1. Define three new responses with the names: X_Final, Y_Final andZ_Final.
  2. Save your project.

Step 4: Tagging the Input and Output Files

Most of the variables and responses were tagged automatically in the previous step, using the auto-tagging process. Verify that the tags were successfully completed by reviewing the input and output files in the Tagging tab.

We still need to tag the responses: X_Final, Y_Final and Z_Final. These coordinates are located near the end of the output file, two lines above the keyword: PuttShotSteps. The number of steps used in the integration of the ball flight trajectory may be different for each design (shot), so the values of the final coordinates may be in a different location in the file for each evaluation. For this reason, we cannot use the marking approach to tag these coordinates. Instead, we will write a short script to instruct HEEDS MDO how to navigate the file to locate these values.  机械工程学代写ASSIGNMENT

  1. Click the Tagging
  2. From the Response pull down menu, selectX_Final.
  3. Fromthe File pull down menu or from the tree, select the output file:Hole2_Tee_Shot_out.txt.
  4. Click the The script editing screen now appears.
  5. To  help in writing the script, click on the button near the upper right corner of the editing screen.

Our script will instruct HEEDS MDO to locate the keyword (or landmark) PuttShotSteps, then move up two lines and extract the value of the desired coordinate. We will need a separate script for each coordinate.

6.To complete the instructions for tagging X_Final, enter the script as shown in the figure below. Note thefollowing:

The SET_PARAMETER_LIST command is automatically generated. Its argument is the response to be tagged, which is updated automatically when you select the tag button in the next step.

You can click the buttons to enter each command or type them manually. They are case sensitive.

The complete syntax for any command can be displayed by hovering the cursor over the desired command.

机械工程学代写ASSIGNMENT
机械工程学代写ASSIGNMENT
  1. Clickthe button to tag the variable.

Note that a new script is not applied until you click, and updates to a script are not applied until you click update.

The tagging process for Y_Final and Z_Final is the same as for X_Final, except that a different value is extracted in the GET_VALUE_FREE command. For example, the script used to tag the vector variable Y_Final is:

  1. Complete the tagging of Y_Final and Don’t forget to click the button to tag the variable after each script is completed.

After all of the responses are tagged, it is strongly recommended that you verify the accuracy of the tags. This can be done by evaluating the responses in the Study tab as follows:

  1. Click on the Responses sub-tab within the Study tab.
  2. Right-click on any of the responses and select Evaluate Responses. All of the responses will be evaluated and their values will be displayed as shown below. Verify the accuracy of these response values before continuing to the next step.

11.Save your project.

Step 5: Defining the Optimization Study    机械工程学代写ASSIGNMENT

Complete the definition of the optimization study based on the problem statement and the data below. When completed, save and run the study.

Study name: Constrained_Optimization

Study type: Parameter Optimization Optimization algorithm: SHERPA

Number of Evaluations: 200

Post-Processing

Create a 2D-Relation plot of the final locations of the designs (shots). In other words, plot X_Final versus Y_Final. Note that the (x,y) coordinates of the hole are (-10, 154). Zoom into the region near the hole to view the distribution of good shots.

Most golfers would prefer to have a straight, uphill putt than any other type of putt. This is referred to as being on the “low side” of the hole. Due to the slope of the green, a design (shot) whose final position is within the yellow region shown below in yellow is ideal.   机械工程学代写ASSIGNMENT

In terms of the coordinates, shots on the low side of the hole should have an x-coordinate that is less than -10 and a y-coordinate that is less than 154. Note the coordinate system in the figure below.

机械工程学代写ASSIGNMENT
机械工程学代写ASSIGNMENT

Answer the following questions:

  1. Findthree designs that are near the hole and on the low side of the  List their design ID’s here:                                     
  2. Are there many designs that are near the hole and on the high side of the hole? Why do you think this is thecase?

Additional Experiments

Here are a few suggestions for additional experiments:

  1. Change the range of variables (primarily the TeeTargetAngle) to force your shot to the left, to the right, or over the tree. You might need to broaden the range of some of the other variables to find a good shot for some of these
  2. Change the values of the constraint limits to make the shot easier or harder.
  3. Try a different optimization problemstatement:

Objective: maximize Ball Distance To Tree

Constraints: Ball Distance to the Hole ≤ 3 yards

First Impact Distance To Green ≤ 10 yards

The above problem statement emphasizes the reliability of the design. By maximizing the Distance To Tree, we are minimizing the chance that the ball will hit the tree if the shot is not executed exactly as prescribed. At the same time, we are still enforcing a certain level of shot quality (less than 3 yards from the hole).

 

更多代写:加拿大econ代考推荐  GMAT代考  加拿大商科exam代考  加拿大essay修改润色  计算机Computer science论文代写  论文润色

合作平台:essay代写 论文代写 写手招聘 英国留学生代写

机械工程学代写ASSIGNMENT
机械工程学代写ASSIGNMENT

发表回复