Matlab graphical optimum point

3 views (last 30 days)
Mo Mo
Mo Mo on 15 Nov 2011
I'm trying to formulate the CAPM and here is what i'm trying to work with:
Rf =.3 ;
B = .95;
Rm = .11;
Ra=Rf+(B*(Rm-Rf));
E = 1000;
D = 1000;
Rd=.02;
Tc = .26;
V=E+D;
WACC=(E/V)*Ra+((D/V)*Rd*(1-Tc));
I=500
S=Rd/I
and represent this on a graph with D/E, WACC and S as axis for a varying D/E.
and I'm trying to find the optimum pouint on the graph for E and D while keeping
S<.36
and WACC to minimum
Many many thanks in advance.

Answers (1)

K E
K E on 4 Jan 2012
I believe you are varying D, E, Rd, and I (they are finite in your example), and that you seek to optimize WACC. In general if you vary 2 independent values, S and D/E, to obtain the dependent value, WACC, you can manually seek the max value by plotting
pcolor(S, D./E, WACC)
Or find the max value as follows,
max(max(WACC(S<0.36, :))) % max over both rows and columns
assuming WACC(S, D./E) is a 2D matrix and S and D./E are vectors. [CAPM = capital asset pricing model, WACC = weighted average cost of capital. New terms to me!]

Categories

Find more on Graph and Network Algorithms in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!