Project management

Avay Minni
Avay MinniStudent um Future Institute of Engineering and Management
PROJECT MANAGEMENT
      THROUGH
 GENETIC ALGORITHM
   PROJECT GUIDE:-


             ARINDAM SINHA RAY




   SUBMITTED BY:-
                      AVAY MINNI
                      DEBADITYA SARKAR
                      RASHMI SAHA
                      RAJESH KUMAR MAHTO
CONTENTS
   INTRODUCTION
     GENETIC ALGORITHM
     RESOURCE CONSTRAINTS
     WHY GENETIC ALGORITHM?

 CASE STUDY
 ALGORITHM

 OUTPUT

 CONCLUSION & FUTURE WORK

 REFERENCE
INTRODUCTION

 A genetic algorithm (or GA) is a search technique
  used in computing to find true or approximate
  solutions to optimization and search problems.
 Genetic algorithms are categorized as global
  search heuristics.
 Genetic algorithms are a particular class of
  evolutionary algorithms that use techniques
  inspired by evolutionary biology such as
  inheritance, mutation, selection, and crossover
  (also called recombination).
The basic genetic algorithm is as follows:
 • [start] Genetic random population of n chromosomes (suitable
    solutions for the problem)
• [Fitness] Evaluate the fitness f(x) of each chromosome x in the
    population
• New population] Create a new population by repeating following steps
    until the New population is complete
   - [selection] select two parent chromosomes from a population
    according to
   their fitness ( the better fitness, the bigger chance to get selected).
  - [crossover] With a crossover probability, cross over the parents to
    form new offspring ( children). If no crossover was
    performed, offspring is the exact copy of parents.
  - [Mutation] With a mutation probability, mutate new offspring at each
    locus (position in chromosome)
  - [Accepting] Place new offspring in the new population.
• [Replace] Use new generated population for a further sum of the
    algorithm.
• [Test] If the end condition is satisfied, stop, and return the best solution
    in current population.
• [Loop] Go to step2 for fitness evaluation.
RESOURCE CONSTRAINTS
 A resource constraint is a limit on what can be done because of
  limitations on what is available to do it.
 Resource abundance = shorter project duration and vice versa.

 First identify peaks of resource requirements.

 In practical, resources are finite . So , impractical for peak
  resource needs.
 Ideally there should be even demand of resource for entire
  project.
 This process of refining the plan to effectively manage and
  schedule resources is called resource modeling .
       -Resource Definition        - Resource Allocation
       -Resource Aggregation        -Resource Leveling
WHY TO USE GENETIC ALGORITHM
 Liability
 Easy to discover global optimum.

 GA uses fitness function for evolution rather than
  derivatives.
 Almost all conventional optimization technique
  search from a single point but GAs always operate
  on a whole population of points(strings).
 Easily modified for different problems.

 They perform very well for large scale optimization
  problems.
 Can be employed for a wide variety of optimization
  problems.
THE RESOURCE-CONSTRAINED PROJECT
SCHEDULING PROBLEM:-
   The RCPSP is one of the most complex scheduling problems. It
    is considered as a generalization of many standard scheduling
    problems.
   A RCPSP considers resources of limited availability and activities
    of known durations and resources request. The problem consists
    of finding a schedule of minimal duration by assigning a start time
    to each activity such that precedence relation and the resource
    availabilities are respected.
   The RCPSP can be defined as a combinational optimization
    problem aims at finding a feasible solution by the help of a tuple
    (V,p,E,R,B,b).
     ---- Activities consisting the project are identified by set
    V={A0,….,An+1}. The set of non-dummy activities is identified by
    Ai={A1,…...An}.
          Durations are represented by vector p.
          Precedence relation are given by E, such that Ai precedes
    activity Aj.
---Availabilities of resources are represented by a vector B.
    such that Bk denotes the availability of Rk.
    R is called unary or disjunctive resource.
    Demands of activities for resources are abstracted by b.
 A schedule is a point S such that Si represents the strat time
    of activity of Ai.
 A solution S is feasible if it is compatible with the precedence
    constraints and resource constraints. Expressed as below
  ---- Sj-Si >= pi , for all (Ai,Aj) belongs to E (I)
        Sum of bik <= Bk , for all Rk belongs to R and t >= 0. (II)
 The SCPSP is the problem of finding a non-preemptive
    schedule S to precedence constraints (I) and resources
    constraints (II).
Problem:
A RCPSP instance is given with n=8 real activities and |R|=1
    resources with availabilities B = 5.
Ai   A0   A1   A2   A3   A4   A5   A6       A7   A8       A9

pi   0    6    1    1    2    3    5        3    2        0
bi   0    2    1    3    2    1    2        3    1        0
Si   0    1    1    1    7    2    2        8    5        0




          A1             A4            A7



A0        A2             A5                          A9




          A3             A6             A8
Mathematical Deduction:-




Min Z = 12A1+A2+3A3+4A4+3A5+10A6+9A7+3A8
Subject to,
3A3+A2 <= 5
A5+2A6+2A1 <= 5
2A6+2A1 <= 5
A8+2A4 <= 5
3A7 <= 5
FUNCTIONS USED FROM MATLAB LIBRARY
FIVE AUXILIARY FUNCTIONS USED:-
function e=vr(m,i)
%The i-th co-ordinate vector e in the Euclidean Space
 Create a matrix e of (m*1) where all the elements are Zero.

 Fill the i-th position of matrix e, with 1.



function d=delcols(d)
%here delete the duplicate column of the matrix d.
 Delete the repeated rows from the matrix d and return the
  sorted one.
 Store the no. of columns of matrix d in n.
 Create an empty Matrix j.
 for k=1 to n

 Assign column wise elements of Matrix d into c.

 for l=k+1 to n

   if(Maximum value from column subtraction for(lth-cth)column
  <= 100*eps)
         copy the lth column into j matrix.
   end if
 end for

 end for

 if j is not empty

 Sort each column of j matrix in ascending order.

 Delete all the columns except 1st one of matrix d.

 end if
function [row,mi]=MRT(a,b)
%The Minimum Ratio Test(MRT) performed on vector a & b.
%Output Parameters are:-
%row=index of the pivot row.
%mi=value of the smallest ratio.
 Store the length of the vector a into m.

 Create a Matrix C with elements 1 to m.

 Combine all the column into one column of Matrix a.

 Combine all the column into one column of Matrix b.

 If b>0,then assign the value of c into l.

 Array right division of lth column of a & b.

 Now, find the minimum from the Quotient matrix.

 Store the min. value in mi & the index no. in row matrix.

 Store the value of row-th index of l matrix into row.
function col=MRTD(a,b)
%The Maximum Ratio Test performed on vectors a and b.
%This function is called form within the function dsimplex.
%Output Parameter-:-
%col-index of the pivot column.
 Store the length of vector a into m.

 Create a Matrix C with elements 1 to m.

 Combine all columns into one column of matrix a.

 Combine all columns into one column of matrix b.

 If b<0,then assign the value of c into l.

 Array right division of l-th column of a & b.

 Now find the Max from quotient matrix.

 Store the max value in mi and index no. in column.

 Store the value of col-th index of l-th matrix into col.
function[m,j]=Br(d)
%Implementation of the Bland's rule applied to the array d.
%This function is called from the following functions:-
%Simplex2p,dsimplex,addconstr,simplex and cpa.
%Output parameters:-
%m=first negative no. in the array D.
%j=index of entry m.
 Find any less than zero elements in d and shows their index in
  vector matrix.
 if ind is not empty
   Store the index no. of first negative no. in j.
   Store the first negative no. of matrix d in m.
 else
   create an empty matrix m.
   create an empty matrix j.
 end else-if
function vert=feassol(A,B)
 %Basic feasible solution vert to the System of
  constraints
  %Ax=b, x>=0
  %They are stored in column of matrix vert.
 Store the value of row and column of matrix A into
  m & n respectively.
 Stop the warning by Matlab.

 Combine all the columns of b in one column.

 Declare an empty matrix vert.

 if (n>=m)//here column>=row

 Create a matrix t with all possible combination from
  the range 1 to n taking m columns at a time.
 nv=n!/(n-m)!m!
 for i=1 to nv

       a)Create zero matrix of row n and column 1.
       b)(i)Choose the number from t-th column and
  i-th row of matrix A.
         (ii)Divide the chosen element b & store the
  quotient into x.
          if all(n>=0 &(n !=inf & n !=-inf))
            a)Assign n to the i-th row of t.
            b)copy the y matrix into vert matrix.
          end if
        end for
    else
     show error message.
 end else if
 if vert is not empty
    Delete the duplicate columns of vert matrix by
  calling delcols function
 else

    create an empty matrix vert.
 end else if
Function vert = extrpts(A,rel,b)
%extreme points vert of the polyhedral set
%x=(x:Ax<=b or Ax>=b, x>=0)
%Inequality signs are =stored in the string rel e.g.
  rel=‘<<>’ stands for <=,<= & >= respectively.
o Store the value of row & column of matrix A into m& n
  respectively.
o Store the value of n in nlv
o For i=1 to m
o        if rel =‘>’
o     assign -1 to the i-th position of m*I mtrix by
  calling vr function.
o     copy the above matrix into A.
o Else
o   assign 1 to the ith position of m*I matrix by calling
  vr function.
o   End else if
 if b(i)<0
    assign negative to all the ith row elements of A.
     assign negative to i-th position of b.
 end if

 end for

 Stop the warning by Matlab.

 Combine all the columns of b in one column.

 Declare an empty matrix vert.

 if (n>=m)//here column>=row

     Create a matrix t with all possible c combination
  from the range 1 to n taking m columns at a time.
 nv=n!/(n-m)!m!
 for i=1 to nv
       a)Create zero matrix of row n and column 1.
       b)(i)Choose the number from t-th column and
  i-th row of matrix A.
         (ii)Divide the chosen element b & store the
  quotient into x.
          if all(n>=0 &(n !=inf & n !=-inf))
            a)Assign n to the i-th row of t.
            b)copy the y matrix into vert matrix.
          end if
        end for
 else
    show error message
 end else if
   Delete the duplicate columns of vert matrix by
    calling delcols function.
OUTPUT
OUTPUT
OUTPUT
OUTPUT
OUTPUT
CONCLUSION & FUTURE WORK
 We have taken a resource constraint problem and
  deduce it mathematically and formulate into linear
  programming problem(LPP).
 We have found the basic feasible solutions and
  extreme point from the LPP .

 Now we will assign fitness function to the feasible
  solution and by using
  SELECTION, REPRODUCTION, EVALUATION
  and REPLACEMENT we have to create offspring.
 And from the offspring population by using best fit
  ,we will reach the optimal solution.
REFERENCES

   Introduction to Genetic Algorithm by
    S.N.Shivanandam & S.N.Deepa.
Project management
1 von 32

Recomendados

ML - Multiple Linear Regression von
ML - Multiple Linear RegressionML - Multiple Linear Regression
ML - Multiple Linear RegressionAndrew Ferlitsch
2.5K views8 Folien
Algorithms von
AlgorithmsAlgorithms
AlgorithmsWaqarzadAa
204 views22 Folien
Matrices, Arrays and Vectors in MATLAB von
Matrices, Arrays and Vectors in MATLABMatrices, Arrays and Vectors in MATLAB
Matrices, Arrays and Vectors in MATLABAbu Raihan Ibna Ali
321 views18 Folien
Statistics Assignment Help von
Statistics Assignment HelpStatistics Assignment Help
Statistics Assignment HelpStatistics Assignment Help
52 views18 Folien
t-tests in R - Lab slides for UGA course FANR 6750 von
t-tests in R - Lab slides for UGA course FANR 6750t-tests in R - Lab slides for UGA course FANR 6750
t-tests in R - Lab slides for UGA course FANR 6750richardchandler
104 views35 Folien
Computing and Data Analysis for Environmental Applications von
Computing and Data Analysis for Environmental ApplicationsComputing and Data Analysis for Environmental Applications
Computing and Data Analysis for Environmental ApplicationsStatistics Assignment Help
47 views8 Folien

Más contenido relacionado

Was ist angesagt?

Arima model (time series) von
Arima model (time series)Arima model (time series)
Arima model (time series)Kumar P
7.6K views70 Folien
Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi... von
Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...
Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...SSA KPI
526 views32 Folien
PROJECT von
PROJECTPROJECT
PROJECTNduka Nwabuwa
254 views27 Folien
Lesson 1 functions as models von
Lesson 1 functions as modelsLesson 1 functions as models
Lesson 1 functions as modelsAddisonPascua
2.7K views30 Folien
ARIMA von
ARIMA ARIMA
ARIMA Venkata Reddy Konasani
79.4K views65 Folien
Sienna 8 countingsorts von
Sienna 8 countingsortsSienna 8 countingsorts
Sienna 8 countingsortschidabdu
256 views2 Folien

Was ist angesagt?(20)

Arima model (time series) von Kumar P
Arima model (time series)Arima model (time series)
Arima model (time series)
Kumar P7.6K views
Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi... von SSA KPI
Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...
Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...
SSA KPI526 views
Lesson 1 functions as models von AddisonPascua
Lesson 1 functions as modelsLesson 1 functions as models
Lesson 1 functions as models
AddisonPascua2.7K views
Sienna 8 countingsorts von chidabdu
Sienna 8 countingsortsSienna 8 countingsorts
Sienna 8 countingsorts
chidabdu256 views
Time series modelling arima-arch von jeevan solaskar
Time series modelling  arima-archTime series modelling  arima-arch
Time series modelling arima-arch
jeevan solaskar1.6K views
About functional SIR von tuxette
About functional SIRAbout functional SIR
About functional SIR
tuxette375 views
Holt alg1 ch5 1 identify linear functions von lothomas
Holt alg1 ch5 1 identify linear functionsHolt alg1 ch5 1 identify linear functions
Holt alg1 ch5 1 identify linear functions
lothomas839 views
General Mathematics - Representation and Types of Functions von Juan Miguel Palero
General Mathematics - Representation and Types of FunctionsGeneral Mathematics - Representation and Types of Functions
General Mathematics - Representation and Types of Functions
Juan Miguel Palero7.2K views
PartOne von ?? ?
PartOnePartOne
PartOne
?? ?520 views
Project time series ppt von amar patil
Project time series pptProject time series ppt
Project time series ppt
amar patil1.6K views

Destacado

HAMS - Product and Prototype von
HAMS - Product and PrototypeHAMS - Product and Prototype
HAMS - Product and PrototypeHAMSproject
201 views10 Folien
A Semantic Web Platform for Automating the Interpretation of Finite Element ... von
A Semantic Web Platform for Automating the Interpretation of Finite Element ...A Semantic Web Platform for Automating the Interpretation of Finite Element ...
A Semantic Web Platform for Automating the Interpretation of Finite Element ...Andre Freitas
882 views36 Folien
REAL TIME PROJECTS IEEE BASED PROJECTS EMBEDDED SYSTEMS PAPER PUBLICATIONS M... von
REAL TIME PROJECTS  IEEE BASED PROJECTS EMBEDDED SYSTEMS PAPER PUBLICATIONS M...REAL TIME PROJECTS  IEEE BASED PROJECTS EMBEDDED SYSTEMS PAPER PUBLICATIONS M...
REAL TIME PROJECTS IEEE BASED PROJECTS EMBEDDED SYSTEMS PAPER PUBLICATIONS M...Finalyear Projects
723 views11 Folien
Vba Class Level 3 von
Vba Class Level 3Vba Class Level 3
Vba Class Level 3Ben Miu CIM® FCSI A+
1.4K views24 Folien
Vba Class Level 1 von
Vba Class Level 1Vba Class Level 1
Vba Class Level 1Ben Miu CIM® FCSI A+
4K views41 Folien
Real-Time Scheduling Algorithms von
Real-Time Scheduling AlgorithmsReal-Time Scheduling Algorithms
Real-Time Scheduling AlgorithmsAJAL A J
15.8K views100 Folien

Destacado(6)

HAMS - Product and Prototype von HAMSproject
HAMS - Product and PrototypeHAMS - Product and Prototype
HAMS - Product and Prototype
HAMSproject201 views
A Semantic Web Platform for Automating the Interpretation of Finite Element ... von Andre Freitas
A Semantic Web Platform for Automating the Interpretation of Finite Element ...A Semantic Web Platform for Automating the Interpretation of Finite Element ...
A Semantic Web Platform for Automating the Interpretation of Finite Element ...
Andre Freitas882 views
REAL TIME PROJECTS IEEE BASED PROJECTS EMBEDDED SYSTEMS PAPER PUBLICATIONS M... von Finalyear Projects
REAL TIME PROJECTS  IEEE BASED PROJECTS EMBEDDED SYSTEMS PAPER PUBLICATIONS M...REAL TIME PROJECTS  IEEE BASED PROJECTS EMBEDDED SYSTEMS PAPER PUBLICATIONS M...
REAL TIME PROJECTS IEEE BASED PROJECTS EMBEDDED SYSTEMS PAPER PUBLICATIONS M...
Finalyear Projects723 views
Real-Time Scheduling Algorithms von AJAL A J
Real-Time Scheduling AlgorithmsReal-Time Scheduling Algorithms
Real-Time Scheduling Algorithms
AJAL A J15.8K views

Similar a Project management

Investigación de operaciones 026 programación lineal Solución Simplex con R S... von
Investigación de operaciones 026 programación lineal Solución Simplex con R S...Investigación de operaciones 026 programación lineal Solución Simplex con R S...
Investigación de operaciones 026 programación lineal Solución Simplex con R S...Jorge Pablo Rivas
508 views18 Folien
A Comparative Analysis Of Assignment Problem von
A Comparative Analysis Of Assignment ProblemA Comparative Analysis Of Assignment Problem
A Comparative Analysis Of Assignment ProblemJim Webb
7 views15 Folien
A0280115(1) von
A0280115(1)A0280115(1)
A0280115(1)prabhat k prasad
976 views15 Folien
Environmental Engineering Assignment Help von
Environmental Engineering Assignment HelpEnvironmental Engineering Assignment Help
Environmental Engineering Assignment HelpMatlab Assignment Experts
37 views18 Folien
Introduction to matlab lecture 2 of 4 von
Introduction to matlab lecture 2 of 4Introduction to matlab lecture 2 of 4
Introduction to matlab lecture 2 of 4Randa Elanwar
524 views35 Folien
Basic concepts in_matlab von
Basic concepts in_matlabBasic concepts in_matlab
Basic concepts in_matlabMohammad Alauddin
473 views15 Folien

Similar a Project management(20)

Investigación de operaciones 026 programación lineal Solución Simplex con R S... von Jorge Pablo Rivas
Investigación de operaciones 026 programación lineal Solución Simplex con R S...Investigación de operaciones 026 programación lineal Solución Simplex con R S...
Investigación de operaciones 026 programación lineal Solución Simplex con R S...
Jorge Pablo Rivas508 views
A Comparative Analysis Of Assignment Problem von Jim Webb
A Comparative Analysis Of Assignment ProblemA Comparative Analysis Of Assignment Problem
A Comparative Analysis Of Assignment Problem
Jim Webb7 views
Introduction to matlab lecture 2 of 4 von Randa Elanwar
Introduction to matlab lecture 2 of 4Introduction to matlab lecture 2 of 4
Introduction to matlab lecture 2 of 4
Randa Elanwar524 views
HLTH 105Focused Activity 5 InstructionsAnswer the following .docx von rooneymin
HLTH 105Focused Activity 5 InstructionsAnswer the following .docxHLTH 105Focused Activity 5 InstructionsAnswer the following .docx
HLTH 105Focused Activity 5 InstructionsAnswer the following .docx
rooneymin2 views
Solving ONE’S interval linear assignment problem von IJERA Editor
Solving ONE’S interval linear assignment problemSolving ONE’S interval linear assignment problem
Solving ONE’S interval linear assignment problem
IJERA Editor43 views
Gauss Elimination Method With Partial Pivoting von SM. Aurnob
Gauss Elimination Method With Partial PivotingGauss Elimination Method With Partial Pivoting
Gauss Elimination Method With Partial Pivoting
SM. Aurnob8.5K views
Setting linear algebra problems von JB Online
Setting linear algebra problemsSetting linear algebra problems
Setting linear algebra problems
JB Online1.5K views
Chapter FOUR Roland Priemer, Copyright 2012, all rights rese.docx von edward6king79409
Chapter FOUR Roland Priemer, Copyright 2012, all rights rese.docxChapter FOUR Roland Priemer, Copyright 2012, all rights rese.docx
Chapter FOUR Roland Priemer, Copyright 2012, all rights rese.docx
NEW APPROACH FOR SOLVING FUZZY TRIANGULAR ASSIGNMENT BY ROW MINIMA METHOD von IAEME Publication
NEW APPROACH FOR SOLVING FUZZY TRIANGULAR ASSIGNMENT BY ROW MINIMA METHODNEW APPROACH FOR SOLVING FUZZY TRIANGULAR ASSIGNMENT BY ROW MINIMA METHOD
NEW APPROACH FOR SOLVING FUZZY TRIANGULAR ASSIGNMENT BY ROW MINIMA METHOD
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx von mydrynan
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docxCSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
mydrynan5 views
Dynamic programming1 von debolina13
Dynamic programming1Dynamic programming1
Dynamic programming1
debolina131.1K views
4 R Tutorial DPLYR Apply Function von Sakthi Dasans
4 R Tutorial DPLYR Apply Function4 R Tutorial DPLYR Apply Function
4 R Tutorial DPLYR Apply Function
Sakthi Dasans4K views
Intro to MATLAB and K-mean algorithm von khalid Shah
Intro to MATLAB and K-mean algorithmIntro to MATLAB and K-mean algorithm
Intro to MATLAB and K-mean algorithm
khalid Shah2.1K views

Último

Volf work.pdf von
Volf work.pdfVolf work.pdf
Volf work.pdfMariaKenney3
54 views43 Folien
STRATEGIC MANAGEMENT MODULE 1_UNIT1 _UNIT2.pdf von
STRATEGIC MANAGEMENT MODULE 1_UNIT1 _UNIT2.pdfSTRATEGIC MANAGEMENT MODULE 1_UNIT1 _UNIT2.pdf
STRATEGIC MANAGEMENT MODULE 1_UNIT1 _UNIT2.pdfDr Vijay Vishwakarma
70 views68 Folien
Recap of our Class von
Recap of our ClassRecap of our Class
Recap of our ClassCorinne Weisgerber
88 views15 Folien
ICS3211_lecture 09_2023.pdf von
ICS3211_lecture 09_2023.pdfICS3211_lecture 09_2023.pdf
ICS3211_lecture 09_2023.pdfVanessa Camilleri
115 views10 Folien
A Guide to Applying for the Wells Mountain Initiative Scholarship 2023 von
A Guide to Applying for the Wells Mountain Initiative Scholarship 2023A Guide to Applying for the Wells Mountain Initiative Scholarship 2023
A Guide to Applying for the Wells Mountain Initiative Scholarship 2023Excellence Foundation for South Sudan
51 views26 Folien
11.28.23 Social Capital and Social Exclusion.pptx von
11.28.23 Social Capital and Social Exclusion.pptx11.28.23 Social Capital and Social Exclusion.pptx
11.28.23 Social Capital and Social Exclusion.pptxmary850239
312 views25 Folien

Último(20)

11.28.23 Social Capital and Social Exclusion.pptx von mary850239
11.28.23 Social Capital and Social Exclusion.pptx11.28.23 Social Capital and Social Exclusion.pptx
11.28.23 Social Capital and Social Exclusion.pptx
mary850239312 views
Relationship of psychology with other subjects. von palswagata2003
Relationship of psychology with other subjects.Relationship of psychology with other subjects.
Relationship of psychology with other subjects.
palswagata200352 views
Monthly Information Session for MV Asterix (November) von Esquimalt MFRC
Monthly Information Session for MV Asterix (November)Monthly Information Session for MV Asterix (November)
Monthly Information Session for MV Asterix (November)
Esquimalt MFRC72 views
REPRESENTATION - GAUNTLET.pptx von iammrhaywood
REPRESENTATION - GAUNTLET.pptxREPRESENTATION - GAUNTLET.pptx
REPRESENTATION - GAUNTLET.pptx
iammrhaywood138 views
Narration lesson plan von TARIQ KHAN
Narration lesson planNarration lesson plan
Narration lesson plan
TARIQ KHAN61 views
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively von PECB
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks EffectivelyISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
PECB 623 views
CUNY IT Picciano.pptx von apicciano
CUNY IT Picciano.pptxCUNY IT Picciano.pptx
CUNY IT Picciano.pptx
apicciano54 views
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx von Ms. Pooja Bhandare
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptxPharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx
Ms. Pooja Bhandare113 views
Class 9 lesson plans von TARIQ KHAN
Class 9 lesson plansClass 9 lesson plans
Class 9 lesson plans
TARIQ KHAN51 views
AUDIENCE - BANDURA.pptx von iammrhaywood
AUDIENCE - BANDURA.pptxAUDIENCE - BANDURA.pptx
AUDIENCE - BANDURA.pptx
iammrhaywood117 views
Retail Store Scavenger Hunt.pptx von jmurphy154
Retail Store Scavenger Hunt.pptxRetail Store Scavenger Hunt.pptx
Retail Store Scavenger Hunt.pptx
jmurphy15446 views

Project management

  • 1. PROJECT MANAGEMENT THROUGH GENETIC ALGORITHM
  • 2. PROJECT GUIDE:- ARINDAM SINHA RAY  SUBMITTED BY:- AVAY MINNI DEBADITYA SARKAR RASHMI SAHA RAJESH KUMAR MAHTO
  • 3. CONTENTS  INTRODUCTION  GENETIC ALGORITHM  RESOURCE CONSTRAINTS  WHY GENETIC ALGORITHM?  CASE STUDY  ALGORITHM  OUTPUT  CONCLUSION & FUTURE WORK  REFERENCE
  • 4. INTRODUCTION  A genetic algorithm (or GA) is a search technique used in computing to find true or approximate solutions to optimization and search problems.  Genetic algorithms are categorized as global search heuristics.  Genetic algorithms are a particular class of evolutionary algorithms that use techniques inspired by evolutionary biology such as inheritance, mutation, selection, and crossover (also called recombination).
  • 5. The basic genetic algorithm is as follows: • [start] Genetic random population of n chromosomes (suitable solutions for the problem) • [Fitness] Evaluate the fitness f(x) of each chromosome x in the population • New population] Create a new population by repeating following steps until the New population is complete - [selection] select two parent chromosomes from a population according to their fitness ( the better fitness, the bigger chance to get selected). - [crossover] With a crossover probability, cross over the parents to form new offspring ( children). If no crossover was performed, offspring is the exact copy of parents. - [Mutation] With a mutation probability, mutate new offspring at each locus (position in chromosome) - [Accepting] Place new offspring in the new population. • [Replace] Use new generated population for a further sum of the algorithm. • [Test] If the end condition is satisfied, stop, and return the best solution in current population. • [Loop] Go to step2 for fitness evaluation.
  • 6. RESOURCE CONSTRAINTS  A resource constraint is a limit on what can be done because of limitations on what is available to do it.  Resource abundance = shorter project duration and vice versa.  First identify peaks of resource requirements.  In practical, resources are finite . So , impractical for peak resource needs.  Ideally there should be even demand of resource for entire project.  This process of refining the plan to effectively manage and schedule resources is called resource modeling . -Resource Definition - Resource Allocation -Resource Aggregation -Resource Leveling
  • 7. WHY TO USE GENETIC ALGORITHM  Liability  Easy to discover global optimum.  GA uses fitness function for evolution rather than derivatives.  Almost all conventional optimization technique search from a single point but GAs always operate on a whole population of points(strings).  Easily modified for different problems.  They perform very well for large scale optimization problems.  Can be employed for a wide variety of optimization problems.
  • 8. THE RESOURCE-CONSTRAINED PROJECT SCHEDULING PROBLEM:-  The RCPSP is one of the most complex scheduling problems. It is considered as a generalization of many standard scheduling problems.  A RCPSP considers resources of limited availability and activities of known durations and resources request. The problem consists of finding a schedule of minimal duration by assigning a start time to each activity such that precedence relation and the resource availabilities are respected.  The RCPSP can be defined as a combinational optimization problem aims at finding a feasible solution by the help of a tuple (V,p,E,R,B,b). ---- Activities consisting the project are identified by set V={A0,….,An+1}. The set of non-dummy activities is identified by Ai={A1,…...An}. Durations are represented by vector p. Precedence relation are given by E, such that Ai precedes activity Aj.
  • 9. ---Availabilities of resources are represented by a vector B. such that Bk denotes the availability of Rk. R is called unary or disjunctive resource. Demands of activities for resources are abstracted by b.  A schedule is a point S such that Si represents the strat time of activity of Ai.  A solution S is feasible if it is compatible with the precedence constraints and resource constraints. Expressed as below ---- Sj-Si >= pi , for all (Ai,Aj) belongs to E (I) Sum of bik <= Bk , for all Rk belongs to R and t >= 0. (II)  The SCPSP is the problem of finding a non-preemptive schedule S to precedence constraints (I) and resources constraints (II). Problem: A RCPSP instance is given with n=8 real activities and |R|=1 resources with availabilities B = 5.
  • 10. Ai A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 pi 0 6 1 1 2 3 5 3 2 0 bi 0 2 1 3 2 1 2 3 1 0 Si 0 1 1 1 7 2 2 8 5 0 A1 A4 A7 A0 A2 A5 A9 A3 A6 A8
  • 11. Mathematical Deduction:- Min Z = 12A1+A2+3A3+4A4+3A5+10A6+9A7+3A8 Subject to, 3A3+A2 <= 5 A5+2A6+2A1 <= 5 2A6+2A1 <= 5 A8+2A4 <= 5 3A7 <= 5
  • 12. FUNCTIONS USED FROM MATLAB LIBRARY
  • 13. FIVE AUXILIARY FUNCTIONS USED:- function e=vr(m,i) %The i-th co-ordinate vector e in the Euclidean Space  Create a matrix e of (m*1) where all the elements are Zero.  Fill the i-th position of matrix e, with 1. function d=delcols(d) %here delete the duplicate column of the matrix d.  Delete the repeated rows from the matrix d and return the sorted one.  Store the no. of columns of matrix d in n.
  • 14.  Create an empty Matrix j.  for k=1 to n  Assign column wise elements of Matrix d into c.  for l=k+1 to n  if(Maximum value from column subtraction for(lth-cth)column <= 100*eps)  copy the lth column into j matrix.  end if  end for  end for  if j is not empty  Sort each column of j matrix in ascending order.  Delete all the columns except 1st one of matrix d.  end if
  • 15. function [row,mi]=MRT(a,b) %The Minimum Ratio Test(MRT) performed on vector a & b. %Output Parameters are:- %row=index of the pivot row. %mi=value of the smallest ratio.  Store the length of the vector a into m.  Create a Matrix C with elements 1 to m.  Combine all the column into one column of Matrix a.  Combine all the column into one column of Matrix b.  If b>0,then assign the value of c into l.  Array right division of lth column of a & b.  Now, find the minimum from the Quotient matrix.  Store the min. value in mi & the index no. in row matrix.  Store the value of row-th index of l matrix into row.
  • 16. function col=MRTD(a,b) %The Maximum Ratio Test performed on vectors a and b. %This function is called form within the function dsimplex. %Output Parameter-:- %col-index of the pivot column.  Store the length of vector a into m.  Create a Matrix C with elements 1 to m.  Combine all columns into one column of matrix a.  Combine all columns into one column of matrix b.  If b<0,then assign the value of c into l.  Array right division of l-th column of a & b.  Now find the Max from quotient matrix.  Store the max value in mi and index no. in column.  Store the value of col-th index of l-th matrix into col.
  • 17. function[m,j]=Br(d) %Implementation of the Bland's rule applied to the array d. %This function is called from the following functions:- %Simplex2p,dsimplex,addconstr,simplex and cpa. %Output parameters:- %m=first negative no. in the array D. %j=index of entry m.  Find any less than zero elements in d and shows their index in vector matrix.  if ind is not empty  Store the index no. of first negative no. in j.  Store the first negative no. of matrix d in m.  else  create an empty matrix m.  create an empty matrix j.  end else-if
  • 18. function vert=feassol(A,B) %Basic feasible solution vert to the System of constraints %Ax=b, x>=0 %They are stored in column of matrix vert.  Store the value of row and column of matrix A into m & n respectively.  Stop the warning by Matlab.  Combine all the columns of b in one column.  Declare an empty matrix vert.  if (n>=m)//here column>=row  Create a matrix t with all possible combination from the range 1 to n taking m columns at a time.
  • 19.  nv=n!/(n-m)!m!  for i=1 to nv  a)Create zero matrix of row n and column 1.  b)(i)Choose the number from t-th column and i-th row of matrix A.  (ii)Divide the chosen element b & store the quotient into x.  if all(n>=0 &(n !=inf & n !=-inf))  a)Assign n to the i-th row of t.  b)copy the y matrix into vert matrix.  end if  end for  else  show error message.  end else if
  • 20.  if vert is not empty  Delete the duplicate columns of vert matrix by calling delcols function  else  create an empty matrix vert.  end else if
  • 21. Function vert = extrpts(A,rel,b) %extreme points vert of the polyhedral set %x=(x:Ax<=b or Ax>=b, x>=0) %Inequality signs are =stored in the string rel e.g. rel=‘<<>’ stands for <=,<= & >= respectively. o Store the value of row & column of matrix A into m& n respectively. o Store the value of n in nlv o For i=1 to m o if rel =‘>’ o assign -1 to the i-th position of m*I mtrix by calling vr function. o copy the above matrix into A. o Else o assign 1 to the ith position of m*I matrix by calling vr function. o End else if
  • 22.  if b(i)<0  assign negative to all the ith row elements of A.  assign negative to i-th position of b.  end if  end for  Stop the warning by Matlab.  Combine all the columns of b in one column.  Declare an empty matrix vert.  if (n>=m)//here column>=row  Create a matrix t with all possible c combination from the range 1 to n taking m columns at a time.
  • 23.  nv=n!/(n-m)!m!  for i=1 to nv  a)Create zero matrix of row n and column 1.  b)(i)Choose the number from t-th column and i-th row of matrix A.  (ii)Divide the chosen element b & store the quotient into x.  if all(n>=0 &(n !=inf & n !=-inf))  a)Assign n to the i-th row of t.  b)copy the y matrix into vert matrix.  end if  end for  else  show error message  end else if
  • 24. Delete the duplicate columns of vert matrix by calling delcols function.
  • 30. CONCLUSION & FUTURE WORK  We have taken a resource constraint problem and deduce it mathematically and formulate into linear programming problem(LPP).  We have found the basic feasible solutions and extreme point from the LPP .  Now we will assign fitness function to the feasible solution and by using SELECTION, REPRODUCTION, EVALUATION and REPLACEMENT we have to create offspring.  And from the offspring population by using best fit ,we will reach the optimal solution.
  • 31. REFERENCES  Introduction to Genetic Algorithm by S.N.Shivanandam & S.N.Deepa.