Cocomo (Estimation)
Cocomo (Estimation)
Common attributes:
1. Project scope must be established in advance
2. S/W metrics are used as a basis from which estimates are made.
3. The project is broken into small pieces which are estimated
individually.
Four approaches:
1. Delay estimation until late in the project.
2. Base estimates on similar projects that have already been
completed.
3. Use relatively simple decomposition techniques to generate
project cost and effort estimates.
4. Use one or more empirical models for software cost and effort
estimation
Function Point
08/03/15
STTP OOSE
12
STTP OOSE
16
FP oriented Models:
E= -13.39 + 0.0545 FP
E= 60.62 x 7.728 x 10 -8FP3
E= 585.7 + 15.12 FP
model
COCOMO applied to
Semidetached
Organic
Embedded
mode
mode
mode
Mode
Organic
Project size
Typically
2-50 KLOC
Semi
detache
d
Embedde
d
Typically
50-300 KLOC
Typically
over
300 KLOC
Nature of Project
Small
size
project,
experienced developers in
the familiar environment. For
example, pay roll, inventory
projects etc.
Medium
size
project,
Medium size team, Average
previous
experience
on
similar project. For example:
Utility
systems
like
compilers,
database
systems, editors etc.
Large project, Real time
systems,
Complex
interfaces,
Very
little
previous experience. For
example: ATMs, Air Traffic
Control etc.
Innovation
Deadline of
the project
Development
Environment
Little
Not tight
Familiar & In
house
Medium
Medium
Medium
Significant
Tight
Complex
Hardware/
customer
Interfaces
required
21
E ab ( KLOC ) bb
D cb ( E )
db
bb
cb
db
Organic
2.4
1.05
2.5
0.38
Semidetached
3.0
1.12
2.5
0.35
Embedded
3.6
1.20
2.5
0.32
Software
Project
When effort and development time are known, the average staff
size to complete the project may be calculated as:
E
Average staff size ( SS )
Persons
D
When project size is known, the productivity level may be
calculated as:
KLOC
Productivity ( P )
KLOC / PM
E
Example:
Suppose that a project was estimated to be 400 KLOC.
Calculate the effort and development time for each of the
three modes i.e., organic, semidetached and embedded.
Solution
The basic COCOMO equation take the form:
E ab ( KLOC ) bb
D cb ( KLOC )
db
Example2:
A project size of 200 KLOC is to be developed. Software
development team has average experience on similar type of
projects. The project schedule is not very tight. Calculate the
effort, development time, average staff size and productivity of the
project.
Solution
The semi-detached mode is the most appropriate mode;
keeping in view the size, schedule and experience of the
development team.
Hence
E = 3.0(200)1.12 = 1133.12 PM
D = 2.5(1133.12)0.35 = 29.3 PM
Average staff
size
E
( SS ) Persons
D
1133 .12
38.67 Persons
29.3
Productivity
KLOC
200
0.1765 KLOC / PM
E
1133 .12
P 176 LOC / PM
Intermediate Model:
Boehm introduced an additional set of 15 predictors(cost drivers ) to
take account of s/w development environment.
Cost drivers are used to adjust the nominal cost of a project to actual
project environment, thus increasing the accuracy of the estimate
Cost drivers: 4 categories
(i) Product Attributes
Required s/w reliability
Size of application database
Complexity of the product
(ii) Hardware Attributes
Run time performance constraints
Memory constraints
Virtual machine volatility
RATINGS
Very low
Low
Nominal
High
Very
high
Extra
high
0.75
0.88
1.00
1.15
1.40
--
--
0.94
1.00
1.08
1.16
--
0.70
0.85
1.00
1.15
1.30
1.65
TIME
--
--
1.00
1.11
1.30
1.66
STOR
--
--
1.00
1.06
1.21
1.56
VIRT
--
0.87
1.00
1.15
1.30
--
TURN
--
0.87
1.00
1.07
1.15
-30
Product Attributes
RELY
DATA
CPLX
Computer Attributes
Cost Drivers
RATINGS
Very low
Low
Nominal
High
Very
high
Extra
high
1.46
1.19
1.00
0.86
0.71
--
1.29
1.13
1.00
0.91
0.82
--
1.42
1.17
1.00
0.86
0.70
--
1.21
1.10
1.00
0.90
--
--
1.14
1.07
1.00
0.95
--
--
1.24
1.10
1.00
0.91
0.82
--
1.24
1.10
1.00
0.91
0.83
--
1.23
1.08
1.00
1.04
1.10
--
Personnel Attributes
ACAP
AEXP
PCAP
VEXP
LEXP
Project Attributes
MODP
TOOL
SCED
31
E ai ( KLOC ) bi * EAF
D ci ( E ) d i
Project
ai
bi
ci
di
Organic
3.2
1.05
2.5
0.38
Semidetached
3.0
1.12
2.5
0.35
Embedded
2.8
1.20
2.5
0.32
Multiplying factors for all 15 cost drivers are multiplied to get EAF
EAF: 0.9 to 1.4
COCOMO II
A hierarchy of estimation models that address the following areas:
1. Application composition Model: Used during early stages of SE.
when prototyping of user interfaces, consideration of software
and system interaction, assessment of performance, and
evaluation of technology maturity are paramount.
2. Early Design Stage Model: Used once requirements have been
stabilized and basic s/w architecture has been established.
3. Post-Architecture-Stage Model: Used during the construction of
the s/w
Total<4
(<2 server ,3 client)
Total<8
(2-3 server, 3-5 client)
Total 8+
(>3 server >5 client)
<3
Simple
Simple
Medium
3-7
Simple
Medium
Difficult
>8
Medium
Difficult
Difficult
Total<4
(<2 server ,3 client)
Total<8
(2-3 server, 3-5 client)
Total 8+
(>3 server >5 client)
<3
Simple
Simple
Medium
3-7
Simple
Medium
Difficult
>8
Medium
Difficult
Difficult