constructive cost model cocomo - university of …apidduck/se362/lectures/cocomo.pdf ·...

27
Constructive Cost Model COCOMO Adapted from Allan Caine

Upload: tranhanh

Post on 24-Aug-2018

226 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Constructive Cost ModelCOCOMO

Adapted from Allan Caine

Page 2: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Outline

COCOMO in a Coconut-shellComplete ExamplesIntermediate COCOMO: Cost DriversAdvantages and Limitations of COCOMO

Page 3: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

COCOMO in a Coconut-shell

bKLOCaE )(=

WhereE is the Effort in staff monthsa and b are coefficients to be determinedKLOC is thousands of lines of code

Page 4: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

The Constants

1.203.6Embedded

1.123.0Semi-detached

1.052.4Organic

baMode

Page 5: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

The Modes

Organic2-50 KLOC, small, stable, little innovation

Semi-detached50-300 KLOC, medium-sized, average abilities, medium time-constraints

Embedded> 300 KLOC, large project team, complex, innovative, severe constraints

Page 6: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Examples

Suppose size is 200 KLOC,Organic

2.4(200)1.05 = 626 staff-months

Semi-Detached3.0(200)1.12 = 1,133 staff-months

Embedded3.6(200)1.20 = 2,077 staff-months

Page 7: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Project Duration

dEcTDEV )(=Where

TDEV is time for developmentc and d are constants to be determinedE is the effort

Page 8: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Constants for TDEV

0.322.5Embedded

0.352.5Semi-detached

0.382.5Organic

dcMode

Page 9: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Example

Picking up from the last example,Organic

E = 626 staff monthsTDEV = 2.5(626)0.38 = 29 months

Semi-detachedE = 1,133TDEV = 2.5(1133)0.35 = 29 months

EmbeddedE = 2077TDEV = 2.5(2077)0.32 = 29 months

Page 10: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Average Staff Size

[staff]months][months]-[staff

===TDEVESS

Page 11: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Productivity

month-staffKLOC

months]-[staff[KLOC]

===ESizeP

Page 12: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Complete Example, Organic

Suppose an organic project has 7.5 KLOC,

Effort 2.4(7.5)1.05 = 20 staff–monthsDevelopment time 2.5(20)0.38 = 8 monthsAverage staff 20 / 8 = 2.5 staffProductivity 7,500 LOC / 20 staff-months = 375 LOC / staff-month

Page 13: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Complete Example, Embedded

Suppose an embedded project has 50 KLOC,

Effort 3.6(50)1.20 = 394 staff–monthsDevelopment time 2.5(394)0.32 = 17 monthsAverage staff 394 / 17 = 23 staffProductivity 50,000 LOC / 394 staff-months = 127 LOC / staff-month

Page 14: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Comparison

127375Productivity

232.5Average Staff

178DevelopmentTime

39420Effort (staff-months)

EmbeddedOrganicItem

Page 15: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Intermediate COCOMO

WhereE is the efforta and b are constants (as before)KLOC is thousands of lines of codeC is the effort adjustment factor

CKLOCaE b ×= )(

New

Page 16: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Cost Drivers

Intermediate COCOMO introduces Cost DriversThey are used because

they are statistically significant to the cost of the project; andthey are not correlated to the project size (KLOC).

Page 17: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Categories

I. Product AttributesII. Computer AttributesIII. Personnel AttributesIV. Project Attributes

Page 18: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

I. Product Attributes

RELY Required Software ReliabilityDATA Data Base SizeCPLX Product Complexity

Page 19: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

II. Computer Attributes

TIME Execution Time ConstraintSTOR Main Storage ConstraintVIRT Virtual Machine Volatility1

TURN Computer Turnaround Time

1The hardware and software in combination.

Page 20: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

III. Personnel Attributes

ACAP Analyst CapabilityAEXP Application ExperiencePCAP Programming CapabilityVEXP Virtual Machine Experience1

LEXP Programming Language Experience

1The hardware and software in combination.

Page 21: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

IV. Project Attributes

MODP Modern Programming PracticesTOOL Use of Software ToolsSCED Required Development Schedule

Page 22: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Example

Suppose the following assumptions are made:

1.17

Page 23: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Example ..2

So, the nominal amount of staff-months will be increased by 17% for organic, semi-detached, or embedded projects.Suppose it is estimated that a project will take 51 nominal staff-months at $5,000 / staff-month.The cost:

Nominally, $255,000 (51 X $5,000)Adjusted, $298,350 (51 X $5,000 X 1.17)

Page 24: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

The “Proof”

Page 25: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Advantages

Based on historyRepeatableUnique adjustment factorsHas different modesWorks well on similar projectsHighly calibratedWell-documentedEasy to use

Page 26: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Limitations

Ignores requirements volatilityIgnores documentationIgnores customer’s “skill”Oversimplifies securityIgnores software safetyIgnores personnel turnoverIgnores many hardware issuesPersonnel experience may be obsoleteMust know the cost driversMust be able to predict project size

Page 27: Constructive Cost Model COCOMO - University of …apidduck/se362/Lectures/cocomo.pdf · Constructive Cost Model COCOMO Adapted from Allan Caine. Outline

Final Word

“The models are just there to help, not to make the management decisions for you.”

-- Barry Boehm