
ME2016D, Fall 2008, Dr. Ferri
Homework Assignment 8
Due Wednesday, Oct 22, 2008
Recall the truss structure A of Homework 5.
In this assignment, we will keep the length
of each bay unchanged, L = 2 m, and we will
maintain the value of the load applied at
node 7 equal to 1000 Newtons. Our goal will
be to examine what happens as the height, H,
is varied from 0.1m to 5m. We are seeking
an "optimal" truss configuration that yields a
balance between the maximum forces in the
truss elements and the overall weight of the
truss elements. We will assume that each truss member has the same cross-sectional area and is
made of the same material; therefore the total weight of the structure is proportional to the sum
of the lengths of the 10 truss elements. Obviously, as Η approaches zero, the weight of the truss
structure will be minimized, but the truss-element forces will approach infinity; conversely, as
Η approaches 5m, the total truss length will become relatively large, but the truss-element loads
should decrease in magnitude. Hence, there is a fundamental tradeoff between truss-structure
weight (i.e., overall length) and truss-element loads.
In order to balance the two objectives, we can form an objective or cost function that is a
weighted sum of the two separate goals.
J = r*(total length of the truss elements) + (1-r)*(maximum force in truss members)
where r is a weighting parameter that shifts the emphasis from the truss length (measured in
meters) to the maximum load (measured in Newtons) as r is varied from 0 to 1. It must be
emphasized that the "maximum force" refers to the largest absolute value of the truss-element
loads, F1, F2, F3, F4, F5, F6, F7, F8, F9, and F10. (Note that we are not concerned with the reaction
forces R1x, R1y, and R4x.)
(a) Based on the solution given in Homework 5, create a function, jcost.m that does the
following:
(i) Takes as input a height value, H. (The function must also assign the values of L and
r).
(ii) Forms the 13 linear equations, A*x = B, and solves for the truss element loads.
(iii) Finds F_max, which is the maximum absolute value of the 10 truss element loads
(iv) Computes the total length of all truss members, L_total, based on the dimensions H
and L. So, ∑
=
=
10
1
_
ii
LtotalL , where Li is the length of the ith truss member.
(v) Calculates and returns the value Jcost = r*L_total + (1-r)*F_max. (F_max in kN,
L_total in m)
Be sure to turn in a print-out of the function jcost with your homework.
x
y
W
φ
LLL
H
123
4
567
12
34567
89 10