Beruflich Dokumente
Kultur Dokumente
C S E
USC-CSSE
USC
C S E
Government (6)
FAA, NASA-Ames, NSF, US Army Research Labs, US Army TACOM, USAF
Cost Center
International (3)
Institute of Software, Chinese Academy of Sciences, EASE (Japan), Samsung
11/8/06
USC-CSSE
USC
C S E
USC-CSSE
USC
C S E
Outline
11/8/06
COCOMO II Overview
USC-CSSE
USC
C S E
COCOMO
11/8/06
organizations data
USC-CSSE
USC
C S E
- Boehm, Abts, Brown, Chulani, Clark, Horowitz, Madachy, Reifer, Steece, Software
Cost Estimation with COCOMO II, Prentice Hall, 2000
1. Introduction
2. Model Definition
3. Application Examples
4. Calibration
5. Emerging Extensions
6. Future Trends
Appendices
USC-CSSE
USC
C S E
11/8/06
USC-CSSE
USC
C S E
4x
2x
Early Design
(13 parameters)
1.5x
1.25x
Relative
Size Range
x
0.8x
Post-Architecture
(23 parameters)
0.67x
0.5x
Applications
Composition
(3 parameters)
0.25x
Concept of
Operation
Feasibility
Plans
and
Rqts.
Detail
Design
Spec.
Product
Design
Spec.
Rqts.
Spec.
Product
Design
Detail
Design
Accepted
Software
Devel.
and Test
USC-CSSE
USC
C S E
Outline
11/8/06
COCOMO II Overview
USC-CSSE
USC
C S E
Multipliers
Effort
Size
USC-CSSE
10
USC
C S E
Scale factors:
- Precedentedness (PREC)
- Development flexibility (FLEX)
- Architecture/ risk resolution (RESL)
- Team cohesion (TEAM)
- Process maturity (PMAT, derived from SEI CMM)
11/8/06
USC-CSSE
11
USC
C S E
2.94 (Size) B EM
PM
estimated
i
B 0.910.01
.
SF
i
Scale Factors
(Wi)
Low
Nominal
FLEX
thoroughly
unprecedented
rigorous
largely
unprecedented
occasional
relaxation
RESL
little (20%)
some (40%)
somewhat
unprecedented
some
relaxation
often (60%)
TEAM
very difficult
interactions
some difficult
interactions
PREC
PMAT
11/8/06
Very Low
basically
cooperative
interactions
weighted sum of 18 KPA achievement levels
USC-CSSE
High
generally
familiar
general
conformity
generally
(75%)
largely
cooperative
Very High
Extra High
seamless
interactions
12
USC
C S E
1.0
0.75
Relative
cost 0.5
1.0
0.70
0.55
Usual Linear
Assumption
0.25
0.046
0.25
0.5
0.75
1.0
Amount Modified
11/8/06
USC-CSSE
13
USC
C S E
11/8/06
USC-CSSE
14
USC
C S E
Software Understanding
Rating / Increment
Very Low
Structure
Low
Reasonably
well structured;
some weak
areas.
High
Very High
Strong
modularity,
information
hiding in
data/control
structures.
Application
No match
Some
Moderate
Good
Clear match
Clarity
between
correlation
correlation
correlation
between
program and
between
between
between
program and
application
program and
program and
program and
application
world views.
application .
application .
application .
world views.
SelfObscure code;
Some code
Moderate level
Good code
SelfDescriptiveness documentation commentary and
of code
commentary
descriptive
missing,
headers; some commentary,
and headers;
code;
obscure or
useful
headers,
useful
documentation
obsolete.
documentation. documentation. documentation; up-to-date,
some weak
well-organized,
areas.
with design
rationale.
SU Increment to
50
40
30
20
10
ESLOC
11/8/06
Very low
Moderately low
cohesion, high cohesion, high
coupling,
coupling.
spaghetti code.
Nom
USC-CSSE
High cohesion,
low coupling.
15
USC
C S E
USC-CSSE
16
USC
C S E
# Projects
Effort
Schedule
11/8/06
COCOMO81
COCOMOII.1997
COCOMOII.2000
63
81%
83
161
52%
64%
61%
62%
75%
80%
72%
81%
65%
USC-CSSE
17
USC
C S E
1.2
1.4
1.6
1.8
2.2
2.4
Productivity Range
11/8/06
USC-CSSE
18
USC
C S E
Outline
11/8/06
COCOMO II Overview
USC-CSSE
19
USC
C S E
Status of Models
COCOMO II
COCOTS
COQUALMO
Defects in
Defects out
CORADMO
COSYSMO
11/8/06
Literature
Behavior
Signif.
Variables
Delphi
*
*
*
*
*
*
*
*
>200
*
*
*
*
*
*
*
*
*
*
*
*
*
*
USC-CSSE
Data,
Bayes
20
6
16
60
20
USC
C S E
STAFFING
TIME
11/8/06
USC-CSSE
21
USC
C S E
COQUALMO
Defect
Introduction
Model
Software
development effort,
cost and schedule
estimate
Defect removal
profile levels
Automation,
Reviews, Testing
11/8/06
Defect
Removal
Model
USC-CSSE
22
USC
C S E
11/8/06
Very Low
Low
Nominal
High
Very High
Extra High
Automated
Analysis
Simple
compiler
syntax
checking
Basic compiler
capabilities
Compiler
extension
Basic req. and
design
consistency
Intermediatelevel module
Simple
req./design
More elaborate
req./design
Basic distprocessing
Formalized
specification,
verification.
Advanced distprocessing
Peer Reviews
No peer review
Ad-hoc
informal walkthrough
Well-defined
preparation,
review,
minimal
follow-up
Formal review
roles and Welltrained people
and basic
checklist
Root cause
analysis,
formal follow
Using
historical data
Extensive
review
checklist
Statistical
control
Execution
Testing and
Tools
No testing
Ad-hoc test
and debug
Basic test
Test criteria
based on
checklist
Well-defined
test seq. and
basic test
coverage tool
system
More advance
test tools,
preparation.
Distmonitoring
Highly
advanced
tools, modelbased test
USC-CSSE
23
USC
C S E
70
60
60
50
Delivered Defects
/ KSLOC
40
30
28.5
20
14.3
10
7.5
0
VL
Low
Nom
High
3.5
VH
1.6
XH
11/8/06
USC-CSSE
24
USC
C S E
Outline
11/8/06
COCOMO II Overview
USC-CSSE
25
USC
C S E
RVHL
DPRS
CLAB
COCOMO II
cost drivers
(except SCED)
Language
Level,
experience,...
11/8/06
COCOMO II
Baseline
effort,
schedule
Phase
Distributions
(COPSEMO)
Effort,
RESL
PPOS
RCAP
RAD
Extension
schedule
by stage
RAD effort,
schedule
by phase
USC-CSSE
26
USC
C S E
10
8
RCAP = XL
6
4
RCAP = XH
2
0
0
10
20
30
40
50
PM
3.7*(Cube root)
11/8/06
3*(Cube root)
USC-CSSE
Square root
27
USC
C S E
11/8/06
USC-CSSE
28
USC
C S E
Avoids overestimation
11/8/06
USC-CSSE
29
USC
C S E
0
0
0
0
294
444
-150
-1.00
588
589
-1
-0.01
882
735
147
0.98
1176
881
295
1.97
1470
1026
444
2.96
# of Products
Effort (PM)
No Reuse
Product Line
Product Line Savings
ROI
400
200
0
-200
Part II: Product Line Annualized Life Cycle Cost Estimation Summary:
# of Products 0
1
2
3
4
5
AMSIZE-P 0
8.1
16.2
24.2
32.3
40.4
AMSIZE-R 0
6.1
6.1
6.1
6.1
6.1
AMSIZE-A 0
6.1
7.7
9.3
11.0
12.6
Total Equiv. KSLOC 0
20.2
29.9
39.6
49.3
59.1
Effort (AM) (*2.94) 0
59.4
88.0
116.5
145.1
173.7
5-year Life Cycle PM 0
296.9
439.8
582.6
725.4
868.3
PM(N, 5)-R (+444) 0
740.9
883.7 1026.5 1169.4 1312.2
PM(N, 5)-NR 0
590.9 1181.9 1772.8 2363.8 2954.7
Product Line Savings (PM) 0
-149.9 298.2
746.3 1194.4 1642.5
ROI 0
-1.00
1.99
4.98
7.97
10.96
Devel. ROI 0
-1.00
-0.01
0.98
1.97
2.96
3-year Life Cycle 0
-142.0 120.0
480.0
800
700
600
500
400
300
200
Development
100
0
-100 0
-200
# of products
11/8/06
USC-CSSE
30
USC
C S E
Outline
11/8/06
COCOMO II Overview
USC-CSSE
31
USC
C S E
Model Differences
COCOMO II
Software
Development phases
20+ years old
200+ calibration points
23 Drivers
Variable granularity
3 anchor points
Size is driven by SLOC
11/8/06
USC-CSSE
COSYSMO
Systems Engineering
Entire Life Cycle
3 years old
60 calibration points
18 drivers
Fixed granularity
No anchor points
Size is driven by
requirements, I/F, etc
32
USC
C S E
Size
Drivers
Effort
Multipliers
- Application factors
-8 factors
- Team factors
-6 factors
- Schedule driver
11/8/06
COSYSMO
Effort
Calibration
USC-CSSE
WBS guided by
ISO/IEC 15288
33
USC
C S E
Size Drivers
Interface-related eKSLOC
Number of logical
interfaces at SoS level
Number of operational
scenarios
Number of components
11/8/06
Integration simplicity
Integration risk resolution
Integration stability
Component readiness
Integration capability
Integration processes
COSOSIMO
SoS
Definition and
Integration
Effort
Calibration
USC-CSSE
34
USC
C S E
USC-CSSE
Network defense
requirements
Network defense
operational concepts
Program protection
requirements
Anti-tamper
implementation
35
USC
C S E
Backup Charts
11/8/06
USC-CSSE
36
USC
C S E
Purpose of COCOMO II
To help people reason about the
cost and schedule implications of
their software decisions
11/8/06
USC-CSSE
37
USC
C S E
11/8/06
USC-CSSE
38
USC
C S E
Relations to MBASE*/Rational
Anchor Point Milestones
App.
Compos.
Inception
LCO,
LCA
Sys
Devel
Waterfall
Rqts.
Inception
Phase
IOC
SRR
LCO
Transition
Elaboration, Construction
SAT
PDR
Prod. Des.
Development
Elaboration
Construction
LCA
Trans.
IOC
USC-CSSE
39
USC
C S E
Post-Architecture EMs-Product:
Required
Reliability
(RELY)
Very Low
Low
Nominal
High
slight
inconvenience
(0.82)
Low, easily
recoverable
losses (0.92)
Moderate,
easily
recoverable
losses (1.00)
10<D/P<100
High financial
loss (1.10)
Risk to
human life
(1.26)
100<D/P<
D/P>1000
DB
bytes/Pgm
SLOC<10
Database Size
(DATA)
Complexity
(CPLX)
Required
Reuse (RUSE)
Documentation
Match to
Lifecycle
(DOCU)
11/8/06
_
None
Many lifecycle
needs
uncovered
Some
lifecycle
needs
uncovered
Very High
Extra High
1000
See
Complexity
Table
Across
project
Across
program
Across
product line
Right-sized
to lifecycle
needs
Excessive for
lifecycle
needs
Very
excessive for
lifecycle
needs
USC-CSSE
_
Across
multiple
product lines
40
USC
C S E
Post-Architecture Complexity
Control Operations
Computation al
Operations
Very Low
Low
Nominal
High
processing.
Devicedependent
Operations
Data
Management
Operations
User Interface
Management
Operations
I/O processing
includes
device
selection,
status
checking and
error
processing.
Multi-file input
and single file
output. Simple
structural
changes, simple
edits. Complex
COTS-DB
queries, updates.
Use of standard
math and
statistical
routines. Basic
matrix/vector
operations.
Simple use of
widget set.
Very High
Extra
High
11/8/06
USC-CSSE
41
USC
C S E
Post-Architecture EMs-Platform:
Very Low
Nominal
High
Very High
Extra High
Execution
Time
Constraint
(TIME)
70%
85%
95%
Main Storage
Constraint
(STOR)
70%
85%
95%q
Major: 6 mo.;
minor: 2 wk.
Major: 2 mo.;
minor: 1 wk.
Major: 2 wk.;
minor: 2 days
Platform
Volatility
(PVOL)
11/8/06
Low
Major change
every 12 mo.;
minor change
every 1 mo.
USC-CSSE
42
USC
C S E
Post-Architecture EMs-Personnel:
Analyst
Capability
(ACAP)
Programmer
Capability
(PCAP)
Personnel
Continuity
(PCON)
Application
Experience
(AEXP)
Platform
Experience
(PEXP)
Language
and Tool
Experience
(LTEX)
11/8/06
Very Low
Low
Nominal
High
Very High
15th
percentile
35th
percentile
55th
percentile
75th
percentile
90th
percentile
15th
percentile
35th
percentile
55th
percentile
75th
percentile
90th
percentile
48%/year
24%/year
12%/year
6%/year
3%/year
<2 months
6 months
1 year
3 years
6 years
<2 months
6 months
1 year
3 years
6 years
<2 months
6 months
1 year
3 years
6 years
USC-CSSE
Extra High
43
USC
C S E
Post-Architecture EMs-Project:
Very Low
Use of Software
Tools (TOOL)
Low
Nominal
High
Very High
Strong, mature,
proactive
lifecycle tools,
well integrated
with processes,
methods, reuse
Same building
or complex
Edit, code,
debug
Simple,
frontend,
backend
CASE, little
integration
Basic
lifecycle
tools,
moderately
integrated
Strong, mature
lifecycle tools,
moderately
integrated
International
Multi-city
and Multicompany
Multi-city or
Multicompany
Same city or
metro. Area
Multisite
Development:
Communications
(SITE)
Some phone,
mail
Individual
phone, FAX
Narrowband
email
Wideband
electronic
communication
Required
Development
Schedule
(SCED)
75% of
nominal
85%
100%
130%
Multisite
Development:
Collocation
Extra High
Fully
collocated
(SITE)
11/8/06
USC-CSSE
Wideband
elect. Comm,
occasional
video conf.
Interactive
multimedia
160%
44
USC
C S E
)
0.280.2(B
0.91
SCED %
TDEV 3.67 PM
100
Output Ranges
Stage
Application Composition
Early Design
Post-Architecture
Optimistic Estimate
0.50 E
0.67 E
0.80 E
Pessimistic Estimate
2.0 E
1.5 E
1.25 E
USC-CSSE
45
USC
C S E
11/8/06
RUSE
Platform Difficulty
Personnel Capability
Personnel Experience
Facilities
TOOL, SITE
Schedule
SCED
USC-CSSE
46
USC
C S E
Outline
COCOMO II Overview
11/8/06
USC-CSSE
47
USC
C S E
Identify relative
significance
Step 3
Perform expert-judgment
Delphi assessment,
formulate
a-priori model
Step 4
Gather project data
Step 5
11/8/06
USC-CSSE
48
USC
C S E
1.06
1.41
1.51
1.45
A-priori
Experts Delphi
Literature,
behavioral analysis
11/8/06
Productivity Range =
Highest Rating /
Lowest Rating
49
USC
C S E
Reuse
Ada COCOMO
COCOMO II:
Application Composition
COCOMO II:
Early Design
COCOMO II:
Post-Architecture
DSI or SLOC
Application Points
Implicit in Model
RVOL rating
Implicit in Model
Change % : RQEV
RQEV
ACT
(ACT,SU,UNFM)
(ACT,SU,UNFM)
Rqts. Change
Requirements Volatility
rating: (RVOL)
Maintenance
Scale (b) in
MMNOM=a(Size)b
1.0
None
None
Personnel Cost
Drivers
Project Cost Drivers
None
None
* Different Multipliers
Different Rating Scale
11/8/06
USC-CSSE
50
USC
C S E
System objectives:
fcny, perf., quality
COCOMO 2.0
Cost,
Sched,
Risks
Corporate parameters:
tools, processes, reuse
11/8/06
USC-CSSE
Ok?
Yes
51
USC
C S E
System objectives:
fcny, perf., quality
COCOMO 2.0
Corporate parameters:
tools, processes, reuse
Cost,
Sched,
Risks
Ok?
Yes
Execute
project
to next
Milestone
M/S
Results
Milestone plans,
resources
Milestone
expectations
Revise
Milestones,
Plans,
Resources
No
Ok?
Yes
Done?
Revised
Expectations
No
Yes
End
11/8/06
USC-CSSE
52
USC
C S E
System objectives:
fcny, perf., quality
COCOMO 2.0
Corporate parameters:
tools, processes, reuse
Cost,
Sched,
Risks
Ok?
Yes
Execute
project
to next
Milestone
M/S
Results
Milestone plans,
resources
Milestone
expectations
Recalibrate
COCOMO 2.0
Accumulate
COCOMO 2.0
calibration
data
Revise
Milestones,
Plans,
Resources
No
Ok?
Yes
Done?
Revised
Expectations
No
Yes
End
11/8/06
USC-CSSE
53
USC
C S E
System objectives:
fcny, perf., quality
COCOMO 2.0
Corporate parameters:
tools, processes, reuse
Improved
Corporate
Parameters
Ok?
Yes
M/S
Results
Milestone plans,
resources
Cost, Sched,
Quality drivers
Evaluate
Corporate
SW
Improvement
Strategies
Cost,
Sched,
Risks
Execute
project
to next
Milestone
Recalibrate
COCOMO 2.0
Milestone
expectations
Accumulate
COCOMO 2.0
calibration
data
Revise
Milestones,
Plans,
Resources
No
Ok?
Yes
Done?
Revised
Expectations
No
Yes
End
11/8/06
USC-CSSE
54
USC
C S E
USC-CSSE
55
USC
C S E
USC-CSSE
56
USC
C S E
RAD Context
RAD a critical competitive strategy
Market window; pace of change
11/8/06
Mo. = 3.7 PM
USC-CSSE
57
USC
C S E
Eliminating Tasks
RAD
Reducing Backtracking
11/8/06
O: covered by
USC-CSSE
58
USC
C S E
RATING
FACTOR
XL
VL
VH
XH
PERS-R
10%
25%
40%
55%
70%
85%
95%
PREX-R
2mo
4 mo
6 mo
1 yr
3 yrs
6 yrs
10 yrs
I,E, C
Multipliers
PM
1.20
1.13
1.06
1.0
.93
.86
.80
1.40
1.25
1.12
1.0
.82
.68
.56
P=PM/M
.86
.90
.95
1.0
1.13
1.26
1.43
PERS-R is the Early Design Capability rating, adjusted to reflect the performers
capability to rapidly assimilate new concepts and material, and to rapidly adapt to
change.
11/8/06
PREX-R is the Early Design Personnel Experience rating, adjusted to reflect the
performers experience with RAD languages, tools, components, and COTS
integration.
USC-CSSE
59
USC
C S E
RCAP Example
RCAP = XL
PM = 30, M = 7, P = 4.3
Trying to do RAD with an unqualified team makes them less efficient (30 PM) and
gets the schedule closer to the cube root law:
(but not quite:
11/8/06
USC-CSSE
60
USC
C S E
COPLIMO
black-box reuse
RCR, RCWR factors,
USC-CSSE
61
USC
C S E
4 Size Drivers
1.
2.
3.
4.
11/8/06
USC-CSSE
62
USC
C S E
11/8/06
Nominal
Difficult
- Well specified
- Loosely specified
- Poorly specified
- Traceable to source
- Simple to understand
- Hard to understand
- Some overlap
- Familiar
- Generally familiar
- Unfamiliar
- Good understanding of
whats needed to satisfy and
verify requirements
USC-CSSE
63
USC
C S E
14 Cost Drivers
Application Factors (8)
1.
2.
3.
4.
5.
6.
7.
8.
11/8/06
Requirements understanding
Architecture complexity
Level of service requirements
Migration complexity
Technology Maturity
Documentation Match to Life Cycle Needs
# and Diversity of Installations/Platforms
# of Recursive Levels in the Design
USC-CSSE
64
USC
C S E
Very low
Low
Nominal
High
Very High
Difficulty
Simple
Low difficulty,
coupling
Moderately
complex, coupled
Difficult, coupled
KPPs
Very complex,
tightly coupled
Criticality
Slight inconvenience
Easily recoverable
losses
Some loss
High financial
loss
11/8/06
USC-CSSE
65
USC
C S E
11/8/06
USC-CSSE
66
USC
C S E
11/8/06
USC-CSSE
67
USC
C S E
11/8/06
USC-CSSE
68
USC
C S E
S2
S1
S4
S3
11/8/06
USC-CSSE
Each weighted by
Complexity
Volatility
Degree of COTS/reuse
69
USC
C S E
11/8/06
USC-CSSE
70
USC
C S E
11/8/06
USC-CSSE
71
USC
C S E
IP Capabilities (size),
project attributes
Cost
Dependability
attribute levels Di
Project attributes
Time-phased
dependability
investments
Time-phased
Value components
Vj
Dependability
investments,
project attributes
Return on
Investment
Value estimating relationships (VERs)
Vj = hj
11/8/06
IP Capabilities
dependability levels Di
USC-CSSE
72
USC
C S E
Value ($)
Investment
High-Returns
Diminishing Returns
1.0
Availability
11/8/06
USC-CSSE
73
USC
C S E
11/8/06
USC-CSSE
74