COCOMO

Last updated

The Constructive Cost Model (COCOMO) is a parametric software cost estimation model developed by Barry W. Boehm. The model parameters are derived from fitting a regression formula using data from historical projects (63 projects for COCOMO 81 and 161 projects for COCOMO II).

Contents

History

The constructive cost model was developed by Barry W. Boehm in the late 1970s [1] and published in Boehm's 1981 book Software Engineering Economics [2] as a model for estimating effort, cost, and schedule for software projects. It drew on a study of 63 projects at TRW Aerospace where Boehm was Director of Software Research and Technology. The study examined projects ranging in size from 2,000 to 100,000 lines of code, and programming languages ranging from assembly to PL/I. These projects were based on the waterfall model of software development which was the prevalent software development process in 1981.

References to this model typically call it COCOMO 81. In 1995 COCOMO II was developed and finally published in 2000 in the book Software Cost Estimation with COCOMO II. [3] COCOMO II is the successor of COCOMO 81 and is claimed to be better suited for estimating modern software development projects; providing support for more recent software development processes and was tuned using a larger database of 161 projects. The need for the new model came as software development technology moved from mainframe and overnight batch processing to desktop development, code reusability, and the use of off-the-shelf software components.

COCOMO consists of a hierarchy of three increasingly detailed and accurate forms. The first level, Basic COCOMO is good for quick, early, rough order of magnitude estimates of software costs, but its accuracy is limited due to its lack of factors to account for difference in project attributes (Cost Drivers). Intermediate COCOMO takes these Cost Drivers into account and Detailed COCOMO additionally accounts for the influence of individual project phases. Last one is Complete COCOMO model which addresses the shortcomings of both basic & intermediate.

Tools

An online COCOMO II tool implementation of the model is available for software cost estimation. [4] It is developed by Ray Madachy, a co-author of COCOMO II, and conforms to the book definition for the post-architecture model. An example estimate from the tool is shown below.

Example software cost estimate from COCOMO II tool. COCOMO Tool Example.png
Example software cost estimate from COCOMO II tool.

Intermediate COCOMO

Intermediate COCOMO computes software development effort as function of program size and a set of "cost drivers" that include subjective assessment of product, hardware, personnel and project attributes. This extension considers a set of four "cost drivers", each with a number of subsidiary attributes:

Each of the 15 attributes receives a rating on a six-point scale that ranges from "very low" to "extra high" (in importance or value). An effort multiplier from the table below applies to the rating. The product of all effort multipliers results in an effort adjustment factor (EAF). Typical values for EAF range from 0.9 to 1.4.

Cost DriversRatings
Very LowLowNominalHighVery HighExtra High
Product attributes
Required software reliability0.750.881.001.151.40 
Size of application database 0.941.001.081.16 
Complexity of the product0.700.851.001.151.301.65
Hardware attributes
Run-time performance constraints  1.001.111.301.66
Memory constraints  1.001.061.211.56
Volatility of the virtual machine environment 0.871.001.151.30 
Required turnabout time 0.871.001.071.15 
Personnel attributes
Analyst capability1.461.191.000.860.71 
Applications experience1.291.131.000.910.82 
Software engineer capability1.421.171.000.860.70 
Virtual machine experience1.211.101.000.90  
Programming language experience1.141.071.000.95  
Project attributes
Application of software engineering methods1.241.101.000.910.82 
Use of software tools1.241.101.000.910.83 
Required development schedule1.231.081.001.041.10 

The Intermediate Cocomo formula now takes the form:

E = a(KSLOC)b(EAF)

where E is the effort applied in person-months, KSLOC is the estimated number of thousands of source lines of code delivered for the project, and EAF is the factor calculated above. The coefficient a and the exponent b are given in the next table for different project types.

Software projectabc
Organic3.21.050.38
Semi-detached3.01.120.35
Embedded2.81.200.32

The Development time D and also the most effective number of Persons P calculation uses E in the same way as in the Basic COCOMO:

D = 2.5 Ec

Note that in addition to the EAF, the parameter a is different in Intermediate COCOMO from the Basic model:

Software projecta
Organic2.4
Semi-detached3.0
Embedded3.6

The parameters b and c are the same in both models.

See also

References

  1. Stutzke, Richard. "Software Estimating Technology: A Survey". Archived from the original on 28 March 2020. Retrieved 9 Oct 2016. .docx icon.svg DOC
  2. Boehm, Barry (1981). Software Engineering Economics . Prentice-Hall. ISBN   0-13-822122-7.
  3. Barry Boehm, Chris Abts, A. Winsor Brown, Sunita Chulani, Bradford K. Clark, Ellis Horowitz, Ray Madachy, Donald J. Reifer, and Bert Steece. Software Cost Estimation with COCOMO II (with CD-ROM). Englewood Cliffs, NJ:Prentice-Hall, 2000. ISBN   0-13-026692-2
  4. Ray Madachy. COCOMO II Tool. softwarecost.org. Accessed October 2025.

Further reading