Cocomo model

Baskarkncet 26,980 views 31 slides Jan 20, 2019
Slide 1
Slide 1 of 31
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31

About This Presentation

SOFTWARE ENGINEERING


Slide Content

COCOMO MODEL (Cost Constructive MOdel ) Most widely used software estimation model. COCOMO predicts the efforts and schedule of a software product.

SEG3300 A&B W2004 R.L. Probert 2 COCOMO Models COCOMO is defined in terms of three different models: the Basic model , the Intermediate model , and the Detailed model . The more complex models account for more factors that influence software projects, and make more accurate estimates.

SEG3300 A&B W2004 R.L. Probert 3 The Development mode the most important factors contributing to a project's duration and cost is the Development Mode Organic Mode : The project is developed in a familiar, stable environment, and the product is similar to previously developed products. The product is relatively small, and requires little innovation. Semidetached Mode : The project's characteristics are intermediate between Organic and Embedded.

SEG3300 A&B W2004 R.L. Probert 4 The Development mode the most important factors contributing to a project's duration and cost is the Development Mode: Embedded Mode : The project is characterized by tight, inflexible constraints and interface requirements. An embedded mode project will require a great deal of innovation.

TCS2411 Software Engineering 5 Basic COCOMO model Computes software development effort (and cost) as function of program size expressed in estimated lines of code Model:

TCS2411 Software Engineering 6 Basic COCOMO Equations where E is effort in person-months D is development time in months kLOC is estimated number of lines of code

P=E/D P- Total number of persons required to accomplish the project

Merits Good for quick,early,rough order of estimates Limitations: Accuracy is limited Does not consider certain factors(H/W constraints,personal quality,experience,tools )

Example Consider a software project using semi-detached mode with 30000 lines of code.We will obtain estimation for this project as follows: E=3.0(30) 1.12 =135 person-month

Duration estimation D=2.5(135) 0.35 =14 months

Person estimation P=E/D =135/14 =10 persons approximately

TCS2411 Software Engineering 12 Intermediate COCOMO computes software development effort as a function of program size and a set of “cost drivers” that include subjective assessments of product, hardware, personnel, and project attributes Give rating to 15 attributes, from “very low” to “extra high”, find effort multipllier (from table) and product of all effort multipliers gives an effort adjustment factor (EAF)

TCS2411 Software Engineering 13 Cost Driver Attributes Product attributes Required reliability Database size Product complexity Computer attributes Execution time constraint Main storage constraint Virtual machine volatility Computer turnaround time

TCS2411 Software Engineering 14 Cost Driver Attributes (Continued) Personnel attributes Analyst capability, Programmer capability Applications experience Virtual machine experience Programming language experience Project attributes Use of modern programming practices Use of software tools Required development schedule

TCS2411 Software Engineering 15 Intermediate COCOMO Equation where E is effort in person-months, kLOC is estimated number of lines of code

Merits Can be applied to almost entire software for easy and rough cost estimation Can be applied at the s/w product component level Limitations: Many components difficult to estimate

TCS2411 Software Engineering 17 Advanced COCOMO Incorporates all characteristics of intermediate COCOMOwith an assessment of the cost driver’s impact on each step of software engineering process

COCOMO 2 models COCOMO 2 incorporates a range of sub-models that produce increasingly detailed software estimates. The sub-models in COCOMO 2 are: Application composition model . Used when software is composed from existing parts. Early design model . Used when requirements are available but design has not yet started. Reuse model . Used to compute the effort of integrating reusable components. Post-architecture model . Used once the system architecture has been designed and more information about the system is available.

Use of COCOMO 2 models

Application composition model Supports prototyping projects and projects where there is extensive reuse. Based on standard estimates of developer productivity in application (object) points/month. Takes CASE tool use into account. Formula is PM = ( NAP ´ (1 - %reuse/100 ) ) / PROD PM is the effort in person-months, NAP is the number of application points and PROD is the productivity.

Object point productivity

Early design model Estimates can be made after the requirements have been agreed. Based on a standard formula for algorithmic models PM = A ´ Size B ´ M where M = PERS ´ RCPX ´ RUSE ´ PDIF ´ PREX ´ FCIL ´ SCED; A = 2.94 in initial calibration, Size in KLOC, B varies from 1.1 to 1.24 depending on novelty of the project, development flexibility, risk management approaches and the process maturity.

Multipliers Multipliers reflect the capability of the developers, the non-functional requirements, the familiarity with the development platform, etc. RCPX - product reliability and complexity; RUSE - the reuse required; PDIF - platform difficulty; PREX - personnel experience; PERS - personnel capability; SCED - required schedule; FCIL - the team support facilities.

The reuse model Takes into account black-box code that is reused without change and code that has to be adapted to integrate it with new code. There are two versions: Black-box reuse where code is not modified. An effort estimate (PM) is computed. White-box reuse where code is modified. A size estimate equivalent to the number of lines of new source code is computed. This then adjusts the size estimate for new code.

Reuse model estimates 1 For generated code: PM = (ASLOC * AT/100)/ATPROD ASLOC is the number of lines of generated code AT is the percentage of code automatically generated. ATPROD is the productivity of engineers in integrating this code.

Reuse model estimates 2 When code has to be understood and integrated: ESLOC = ASLOC * (1-AT/100) * AAM. ASLOC and AT as before. AAM is the adaptation adjustment multiplier computed from the costs of changing the reused code, the costs of understanding how to integrate the code and the costs of reuse decision making.

Post-architecture level Uses the same formula as the early design model but with 17 rather than 7 associated multipliers. The code size is estimated as: Number of lines of new code to be developed; Estimate of equivalent number of lines of new code computed using the reuse model; An estimate of the number of lines of code that have to be modified according to requirements changes.

This depends on 5 scale factors (see next slide). Their sum/100 is added to 1.01 A company takes on a project in a new domain. The client has not defined the process to be used and has not allowed time for risk analysis. The company has a CMM level 2 rating. Precedenteness - new project (4) Development flexibility - no client involvement - Very high (1) Architecture/risk resolution - No risk analysis - V. Low .(5) Team cohesion - new team - nominal (3) Process maturity - some control - nominal (3) Scale factor is therefore 1.17. The exponent term

Exponent scale factors

TCS2411 Software Engineering 30 Estimation Issues Historical Data Accuracy Estimation Technique Automation Improving the Estimate

TCS2411 Software Engineering 31 References “Software Engineering: A Practitioner’s Approach” 5th Ed. by Roger S. Pressman, Mc-Graw-Hill, 2001 “Software Engineering” by Ian Sommerville, Addison-Wesley, 2001