SlideShare a Scribd company logo
LINEAR PROGRAMMING IN
    COMPUTATIONAL GEOMETRY
•PROBLEM OF MOLDING
•HALF PLANE INTERSECTION SOLUTION
•INCREMENTAL LINEAR PROGRAMMING SOLUTION
•RANDOMIZATION
MANUFACTURING WITH MOLDS
                       a real life problem of computational geometry

What is mold?
    a cavity with same shape as that of object

Restriction
     object must have a horizontal top facet


Castable object
LEMMA
    A polyhedra P can be removed from it’s mold if angle
b/w d and n(f) is at least 90 for each ordinary facet ‘f’ of P
            where d is the direction of translation of object
                     and n(f) is the outward normal of facet f

It leads to the consequence that P can be removed by single
translation if it can be removed by small translations.
If we consider the direction of movement as upward from
        origin then the d and n can be considered as
                      d=(dx, dy,1) &
                      n=(nx, ny, nz).
              Now acc. to Lemma, we have
                   dx nx + dyny+ nz <0
   which is nothing but the eqn. of a half plane in plane
                           Z=1
N facet polyhedra will have n-1 such half planes
   Common intersection of these planes gives rise to the
               region in which the value of
                       dx and dy lies

empty intersection implies object as uncastable

 problem reduces to solving n-1 half plane eqns to get the
                  common intersection
ALGORITHM FOR HALF PLANE INTERSECTION
  INPUT := a set H of half planes in the plane
  OUTPUT := the convex polygonal region C
  ALGORITHM               INTERSECTHALFPLANES(H)
  if card(H) = 1
  then C← the unique half-plane h ∈ H
          ←
  else Split H into sets H1 and H2 of size n/2 and n/2.
  C1 ←INTERSECTHALFPLANES(H1)
  C2 ←INTERSECTHALFPLANES(H2)
  C←INTERSECTCONVEXREGIONS(C1,C2)
Store C as left and right boundary with sorted list of half planes
INTERSECTCONVEXREGIONS(C1,C2)
          USE PLANE SWEEP ALGORITHM
                  ystart <= min(y1,y2)
       where y1 and y2 upper end point of C1 and C2
 at every event point, new edge e having p as upper
            end point appears on boundary

following cases to be tested when e lies on left boundary of C1



                                                        continue
Case 1
Case 2
Case 3
LINEAR PROGRAMMING:
In case of casting problem, however, we don’t need to know
all solutions to the set of linear constraints; just one solution
will do fine. This allows for a faster algorithm, expected time
is linear.

Finding a solution to a set of linear constraints is LINEAR
PROGRAMMING or LINEAR OPTIMIZATION.
BASIC CONSTRUCT OF A LP:
Maximize{Objective function}: c1x1+c2x2+・ ・ ・+cdxd
Subject to {Linear contraints}:
      a1,1x1+・ ・ ・+a1,dxd ≤ b1
      a2,1x1+・ ・ ・+a2,dxd ≤ b2
           ...
       an,1x1+・ ・ ・+an,dxd ≤ bn
Our solution will be the point that maximizes the Objective
Function.

Objective Function can be viewed as a direction c(c1, c2,…, cd )
in the d-dimension plane.

 The set of points satisfying the constraints is called feasible
region else infeasible region.

 Hence our soln. is the point in the feasible region that is
extreme in the direction c.
In case of molding we have n linear constraints in two variables
and we want to find one solution to the set of constraints. We
can do this by taking an arbitrary objective function, and then
solving the linear program defined by the objective function
and the linear constraints.
We use following conventions:
H is the set of n linear constraints i.e, half-planes: h1 , ... , hn
Vector defining objective function: c(cx , cy)
Our goal is to find out point (px , py ) such that cx px +cy py
is max.
Possible case of intersection:
To make sure that we get a unique soln. we have to impose
restrictions on case ii & iii.
Case ii) we add to our linear program two additional
constraints that will guarantee that the linear program is
bounded. For example, if cx > 0 and cy > 0 we add the
constraints px ≤M and py ≤ M, for some large M ∈ R. let these
constraints be m1 & m2 .
Case iii) we take the lexicographically smallest value.
Basis of the algorithm:
 Let 1≤ i≤ n, and let Ci and vi be feasible region & optimal point of
 each step.Then we have
 (i) If vi−1 ∈ hi, then vi = vi−1.
 (ii) If vi−1 ∈ hi, then either Ci = 0 or vi ∈ li, where li is the line
 bounding hi.
Case ii): finding p on li
 It can be reduced to 1-D LP problem of finding p on li that
 maximizes the OF subject to constraints p ∈ Hi-1 .
The interval [ xleft : xright ] is our feasible region and xleft or xright the
optimal soln. .
 It take linear time to calculate this ,i.e: O(n).
ACTUAL ALGORITHM:
RANDOMIZED LINEAR PROGRAMMING:

 Worst case time complexity of Increamental LP is O(n2 ) this
 can be improved if the order of half planes are suitably changed.



 We use a randomize algorithm to get a random sequence of
 these half planes. Finally, we get an expected time of O(n).
Linear programming in computational geometry
Linear programming in computational geometry

More Related Content

What's hot

Asymptotic Analysis in Data Structure using C
Asymptotic Analysis in Data Structure using CAsymptotic Analysis in Data Structure using C
Asymptotic Analysis in Data Structure using C
Meghaj Mallick
 
Absorbing Random Walk Centrality
Absorbing Random Walk CentralityAbsorbing Random Walk Centrality
Absorbing Random Walk Centrality
Michael Mathioudakis
 
Slides to RSA Presentation
Slides to RSA PresentationSlides to RSA Presentation
Slides to RSA Presentation
David Boyhan, JD, CIPP
 
A star
A starA star
Convex hull in 3D
Convex hull in 3DConvex hull in 3D
Convex hull in 3D
Roger Hernando Buch
 
Derivatives Lesson Oct 6
Derivatives Lesson  Oct 6Derivatives Lesson  Oct 6
Derivatives Lesson Oct 6
ingroy
 
Random Number Generators 2018
Random Number Generators 2018Random Number Generators 2018
Random Number Generators 2018
rinnocente
 
Asymptotic notation
Asymptotic notationAsymptotic notation
Asymptotic notation
sajinis3
 
Maximizing Submodular Function over the Integer Lattice
Maximizing Submodular Function over the Integer LatticeMaximizing Submodular Function over the Integer Lattice
Maximizing Submodular Function over the Integer Lattice
Tasuku Soma
 
CAPS_Discipline_Training
CAPS_Discipline_TrainingCAPS_Discipline_Training
CAPS_Discipline_Training
Hannah Butler
 
Asymptotic Notation
Asymptotic NotationAsymptotic Notation
Asymptotic Notation
sohelranasweet
 
asymptotic notations i
asymptotic notations iasymptotic notations i
asymptotic notations i
Ali mahmood
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic Notations
Rishabh Soni
 
Asymptotic notation
Asymptotic notationAsymptotic notation
Asymptotic notation
Dr Shashikant Athawale
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Cyrus beck line clipping algorithm
Cyrus beck line clipping algorithmCyrus beck line clipping algorithm
Cyrus beck line clipping algorithm
Pooja Dixit
 
Asymptotic notation
Asymptotic notationAsymptotic notation
Asymptotic notation
Saranya Natarajan
 
Polar Plot
Polar PlotPolar Plot
Polar Plot
Hussain K
 
Second derivative and graphing
Second derivative and graphingSecond derivative and graphing
Second derivative and graphing
mcftay15
 

What's hot (19)

Asymptotic Analysis in Data Structure using C
Asymptotic Analysis in Data Structure using CAsymptotic Analysis in Data Structure using C
Asymptotic Analysis in Data Structure using C
 
Absorbing Random Walk Centrality
Absorbing Random Walk CentralityAbsorbing Random Walk Centrality
Absorbing Random Walk Centrality
 
Slides to RSA Presentation
Slides to RSA PresentationSlides to RSA Presentation
Slides to RSA Presentation
 
A star
A starA star
A star
 
Convex hull in 3D
Convex hull in 3DConvex hull in 3D
Convex hull in 3D
 
Derivatives Lesson Oct 6
Derivatives Lesson  Oct 6Derivatives Lesson  Oct 6
Derivatives Lesson Oct 6
 
Random Number Generators 2018
Random Number Generators 2018Random Number Generators 2018
Random Number Generators 2018
 
Asymptotic notation
Asymptotic notationAsymptotic notation
Asymptotic notation
 
Maximizing Submodular Function over the Integer Lattice
Maximizing Submodular Function over the Integer LatticeMaximizing Submodular Function over the Integer Lattice
Maximizing Submodular Function over the Integer Lattice
 
CAPS_Discipline_Training
CAPS_Discipline_TrainingCAPS_Discipline_Training
CAPS_Discipline_Training
 
Asymptotic Notation
Asymptotic NotationAsymptotic Notation
Asymptotic Notation
 
asymptotic notations i
asymptotic notations iasymptotic notations i
asymptotic notations i
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic Notations
 
Asymptotic notation
Asymptotic notationAsymptotic notation
Asymptotic notation
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notations
 
Cyrus beck line clipping algorithm
Cyrus beck line clipping algorithmCyrus beck line clipping algorithm
Cyrus beck line clipping algorithm
 
Asymptotic notation
Asymptotic notationAsymptotic notation
Asymptotic notation
 
Polar Plot
Polar PlotPolar Plot
Polar Plot
 
Second derivative and graphing
Second derivative and graphingSecond derivative and graphing
Second derivative and graphing
 

Viewers also liked

Linear programming
Linear programmingLinear programming
Linear programming
Krantee More
 
Linear Equations Slide Share Version Exploded[1]
Linear  Equations Slide Share Version Exploded[1]Linear  Equations Slide Share Version Exploded[1]
Linear Equations Slide Share Version Exploded[1]
keithpeter
 
Math
MathMath
Math
syoungb
 
Chapter 3 linear programming
Chapter 3   linear programmingChapter 3   linear programming
Chapter 3 linear programming
sarkissk
 
3 linear equations
3 linear equations3 linear equations
3 linear equations
elem-alg-sample
 
Linear Programming and its Usage in Approximation Algorithms for NP Hard Opti...
Linear Programming and its Usage in Approximation Algorithms for NP Hard Opti...Linear Programming and its Usage in Approximation Algorithms for NP Hard Opti...
Linear Programming and its Usage in Approximation Algorithms for NP Hard Opti...
Reza Rahimi
 
3 2 linear equations and lines
3 2 linear equations and lines3 2 linear equations and lines
3 2 linear equations and lines
math123a
 
PPT on Linear Equations in two variables
PPT on Linear Equations in two variables PPT on Linear Equations in two variables
PPT on Linear Equations in two variables
sagar9971
 
Linear Programming on Digital Advertising
Linear Programming on Digital AdvertisingLinear Programming on Digital Advertising
Linear Programming on Digital Advertising
A. Can Bengisu
 
Linear Programming Application
Linear Programming ApplicationLinear Programming Application
Linear Programming Application
Kashif Latif
 
MATH 10 Week 1 2 linear equations (2)
MATH 10 Week 1  2 linear equations (2)MATH 10 Week 1  2 linear equations (2)
MATH 10 Week 1 2 linear equations (2)
I.j. Carido
 
Lesson 35: Game Theory and Linear Programming
Lesson 35: Game Theory and Linear ProgrammingLesson 35: Game Theory and Linear Programming
Lesson 35: Game Theory and Linear Programming
Matthew Leingang
 
Direct Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsDirect Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations Systems
Lizeth Paola Barrero
 
Applications of linear programming
Applications of linear programmingApplications of linear programming
Applications of linear programming
Zenblade 93
 
Chapter 3. linear equation and linear equalities in one variables
Chapter 3. linear equation and linear equalities in one variablesChapter 3. linear equation and linear equalities in one variables
Chapter 3. linear equation and linear equalities in one variables
monomath
 
Linear Programming 1
Linear Programming 1Linear Programming 1
Linear Programming 1
irsa javed
 
Linear Equations Ppt
Linear Equations PptLinear Equations Ppt
Linear Equations Ppt
Scott R
 
Linear Equations and Inequalities in One Variable
Linear Equations and Inequalities in One VariableLinear Equations and Inequalities in One Variable
Linear Equations and Inequalities in One Variable
misey_margarette
 
Tbs910 linear programming
Tbs910 linear programmingTbs910 linear programming
Tbs910 linear programming
Stephen Ong
 
Linear Equations
Linear EquationsLinear Equations
Linear Equations
rfant
 

Viewers also liked (20)

Linear programming
Linear programmingLinear programming
Linear programming
 
Linear Equations Slide Share Version Exploded[1]
Linear  Equations Slide Share Version Exploded[1]Linear  Equations Slide Share Version Exploded[1]
Linear Equations Slide Share Version Exploded[1]
 
Math
MathMath
Math
 
Chapter 3 linear programming
Chapter 3   linear programmingChapter 3   linear programming
Chapter 3 linear programming
 
3 linear equations
3 linear equations3 linear equations
3 linear equations
 
Linear Programming and its Usage in Approximation Algorithms for NP Hard Opti...
Linear Programming and its Usage in Approximation Algorithms for NP Hard Opti...Linear Programming and its Usage in Approximation Algorithms for NP Hard Opti...
Linear Programming and its Usage in Approximation Algorithms for NP Hard Opti...
 
3 2 linear equations and lines
3 2 linear equations and lines3 2 linear equations and lines
3 2 linear equations and lines
 
PPT on Linear Equations in two variables
PPT on Linear Equations in two variables PPT on Linear Equations in two variables
PPT on Linear Equations in two variables
 
Linear Programming on Digital Advertising
Linear Programming on Digital AdvertisingLinear Programming on Digital Advertising
Linear Programming on Digital Advertising
 
Linear Programming Application
Linear Programming ApplicationLinear Programming Application
Linear Programming Application
 
MATH 10 Week 1 2 linear equations (2)
MATH 10 Week 1  2 linear equations (2)MATH 10 Week 1  2 linear equations (2)
MATH 10 Week 1 2 linear equations (2)
 
Lesson 35: Game Theory and Linear Programming
Lesson 35: Game Theory and Linear ProgrammingLesson 35: Game Theory and Linear Programming
Lesson 35: Game Theory and Linear Programming
 
Direct Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsDirect Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations Systems
 
Applications of linear programming
Applications of linear programmingApplications of linear programming
Applications of linear programming
 
Chapter 3. linear equation and linear equalities in one variables
Chapter 3. linear equation and linear equalities in one variablesChapter 3. linear equation and linear equalities in one variables
Chapter 3. linear equation and linear equalities in one variables
 
Linear Programming 1
Linear Programming 1Linear Programming 1
Linear Programming 1
 
Linear Equations Ppt
Linear Equations PptLinear Equations Ppt
Linear Equations Ppt
 
Linear Equations and Inequalities in One Variable
Linear Equations and Inequalities in One VariableLinear Equations and Inequalities in One Variable
Linear Equations and Inequalities in One Variable
 
Tbs910 linear programming
Tbs910 linear programmingTbs910 linear programming
Tbs910 linear programming
 
Linear Equations
Linear EquationsLinear Equations
Linear Equations
 

Similar to Linear programming in computational geometry

Linear programming in computational geometry
Linear programming in computational geometryLinear programming in computational geometry
Linear programming in computational geometry
Subhashis Hazarika
 
Contour
ContourContour
Practical computation of Hecke operators
Practical computation of Hecke operatorsPractical computation of Hecke operators
Practical computation of Hecke operators
Mathieu Dutour Sikiric
 
cswiercz-general-presentation
cswiercz-general-presentationcswiercz-general-presentation
cswiercz-general-presentation
Chris Swierczewski
 
Combinatorial optimization CO-2
Combinatorial optimization CO-2Combinatorial optimization CO-2
Combinatorial optimization CO-2
man003
 
Optimization introduction
Optimization introductionOptimization introduction
Optimization introduction
helalmohammad2
 
Differential Equations Assignment Help
Differential Equations Assignment HelpDifferential Equations Assignment Help
Differential Equations Assignment Help
Maths Assignment Help
 
Differential Equations Assignment Help
Differential Equations Assignment HelpDifferential Equations Assignment Help
Differential Equations Assignment Help
Math Homework Solver
 
Calculus Assignment Help
 Calculus Assignment Help Calculus Assignment Help
Calculus Assignment Help
Math Homework Solver
 
Project in Calcu
Project in CalcuProject in Calcu
Project in Calcu
patrickpaz
 
MTH_301_Lecture_12b_2022_.pdf
MTH_301_Lecture_12b_2022_.pdfMTH_301_Lecture_12b_2022_.pdf
MTH_301_Lecture_12b_2022_.pdf
Glory676438
 
Amirim Project - Threshold Functions in Random Simplicial Complexes - Avichai...
Amirim Project - Threshold Functions in Random Simplicial Complexes - Avichai...Amirim Project - Threshold Functions in Random Simplicial Complexes - Avichai...
Amirim Project - Threshold Functions in Random Simplicial Complexes - Avichai...
Avichai Cohen
 
Polyhedral computations in computational algebraic geometry and optimization
Polyhedral computations in computational algebraic geometry and optimizationPolyhedral computations in computational algebraic geometry and optimization
Polyhedral computations in computational algebraic geometry and optimization
Vissarion Fisikopoulos
 
Single Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpSingle Variable Calculus Assignment Help
Single Variable Calculus Assignment Help
Math Homework Solver
 
Complex Analysis And ita real life problems solution
Complex Analysis And ita real life problems solutionComplex Analysis And ita real life problems solution
Complex Analysis And ita real life problems solution
NaeemAhmad289736
 
Problem Solving by Computer Finite Element Method
Problem Solving by Computer Finite Element MethodProblem Solving by Computer Finite Element Method
Problem Solving by Computer Finite Element Method
Peter Herbert
 
Analytic construction of points on modular elliptic curves
Analytic construction of points on modular elliptic curvesAnalytic construction of points on modular elliptic curves
Analytic construction of points on modular elliptic curves
mmasdeu
 
Basics of Integration and Derivatives
Basics of Integration and DerivativesBasics of Integration and Derivatives
Basics of Integration and Derivatives
Faisal Waqar
 
Chapter 4 Integration
Chapter 4  IntegrationChapter 4  Integration
20101017 program analysis_for_security_livshits_lecture02_compilers
20101017 program analysis_for_security_livshits_lecture02_compilers20101017 program analysis_for_security_livshits_lecture02_compilers
20101017 program analysis_for_security_livshits_lecture02_compilers
Computer Science Club
 

Similar to Linear programming in computational geometry (20)

Linear programming in computational geometry
Linear programming in computational geometryLinear programming in computational geometry
Linear programming in computational geometry
 
Contour
ContourContour
Contour
 
Practical computation of Hecke operators
Practical computation of Hecke operatorsPractical computation of Hecke operators
Practical computation of Hecke operators
 
cswiercz-general-presentation
cswiercz-general-presentationcswiercz-general-presentation
cswiercz-general-presentation
 
Combinatorial optimization CO-2
Combinatorial optimization CO-2Combinatorial optimization CO-2
Combinatorial optimization CO-2
 
Optimization introduction
Optimization introductionOptimization introduction
Optimization introduction
 
Differential Equations Assignment Help
Differential Equations Assignment HelpDifferential Equations Assignment Help
Differential Equations Assignment Help
 
Differential Equations Assignment Help
Differential Equations Assignment HelpDifferential Equations Assignment Help
Differential Equations Assignment Help
 
Calculus Assignment Help
 Calculus Assignment Help Calculus Assignment Help
Calculus Assignment Help
 
Project in Calcu
Project in CalcuProject in Calcu
Project in Calcu
 
MTH_301_Lecture_12b_2022_.pdf
MTH_301_Lecture_12b_2022_.pdfMTH_301_Lecture_12b_2022_.pdf
MTH_301_Lecture_12b_2022_.pdf
 
Amirim Project - Threshold Functions in Random Simplicial Complexes - Avichai...
Amirim Project - Threshold Functions in Random Simplicial Complexes - Avichai...Amirim Project - Threshold Functions in Random Simplicial Complexes - Avichai...
Amirim Project - Threshold Functions in Random Simplicial Complexes - Avichai...
 
Polyhedral computations in computational algebraic geometry and optimization
Polyhedral computations in computational algebraic geometry and optimizationPolyhedral computations in computational algebraic geometry and optimization
Polyhedral computations in computational algebraic geometry and optimization
 
Single Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpSingle Variable Calculus Assignment Help
Single Variable Calculus Assignment Help
 
Complex Analysis And ita real life problems solution
Complex Analysis And ita real life problems solutionComplex Analysis And ita real life problems solution
Complex Analysis And ita real life problems solution
 
Problem Solving by Computer Finite Element Method
Problem Solving by Computer Finite Element MethodProblem Solving by Computer Finite Element Method
Problem Solving by Computer Finite Element Method
 
Analytic construction of points on modular elliptic curves
Analytic construction of points on modular elliptic curvesAnalytic construction of points on modular elliptic curves
Analytic construction of points on modular elliptic curves
 
Basics of Integration and Derivatives
Basics of Integration and DerivativesBasics of Integration and Derivatives
Basics of Integration and Derivatives
 
Chapter 4 Integration
Chapter 4  IntegrationChapter 4  Integration
Chapter 4 Integration
 
20101017 program analysis_for_security_livshits_lecture02_compilers
20101017 program analysis_for_security_livshits_lecture02_compilers20101017 program analysis_for_security_livshits_lecture02_compilers
20101017 program analysis_for_security_livshits_lecture02_compilers
 

Recently uploaded

BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 

Recently uploaded (20)

BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 

Linear programming in computational geometry

  • 1. LINEAR PROGRAMMING IN COMPUTATIONAL GEOMETRY •PROBLEM OF MOLDING •HALF PLANE INTERSECTION SOLUTION •INCREMENTAL LINEAR PROGRAMMING SOLUTION •RANDOMIZATION
  • 2. MANUFACTURING WITH MOLDS a real life problem of computational geometry What is mold? a cavity with same shape as that of object Restriction object must have a horizontal top facet Castable object
  • 3. LEMMA A polyhedra P can be removed from it’s mold if angle b/w d and n(f) is at least 90 for each ordinary facet ‘f’ of P where d is the direction of translation of object and n(f) is the outward normal of facet f It leads to the consequence that P can be removed by single translation if it can be removed by small translations.
  • 4. If we consider the direction of movement as upward from origin then the d and n can be considered as d=(dx, dy,1) & n=(nx, ny, nz). Now acc. to Lemma, we have dx nx + dyny+ nz <0 which is nothing but the eqn. of a half plane in plane Z=1
  • 5. N facet polyhedra will have n-1 such half planes Common intersection of these planes gives rise to the region in which the value of dx and dy lies empty intersection implies object as uncastable problem reduces to solving n-1 half plane eqns to get the common intersection
  • 6. ALGORITHM FOR HALF PLANE INTERSECTION INPUT := a set H of half planes in the plane OUTPUT := the convex polygonal region C ALGORITHM INTERSECTHALFPLANES(H) if card(H) = 1 then C← the unique half-plane h ∈ H ← else Split H into sets H1 and H2 of size n/2 and n/2. C1 ←INTERSECTHALFPLANES(H1) C2 ←INTERSECTHALFPLANES(H2) C←INTERSECTCONVEXREGIONS(C1,C2) Store C as left and right boundary with sorted list of half planes
  • 7. INTERSECTCONVEXREGIONS(C1,C2) USE PLANE SWEEP ALGORITHM ystart <= min(y1,y2) where y1 and y2 upper end point of C1 and C2 at every event point, new edge e having p as upper end point appears on boundary following cases to be tested when e lies on left boundary of C1 continue
  • 11. LINEAR PROGRAMMING: In case of casting problem, however, we don’t need to know all solutions to the set of linear constraints; just one solution will do fine. This allows for a faster algorithm, expected time is linear. Finding a solution to a set of linear constraints is LINEAR PROGRAMMING or LINEAR OPTIMIZATION.
  • 12. BASIC CONSTRUCT OF A LP: Maximize{Objective function}: c1x1+c2x2+・ ・ ・+cdxd Subject to {Linear contraints}: a1,1x1+・ ・ ・+a1,dxd ≤ b1 a2,1x1+・ ・ ・+a2,dxd ≤ b2 ... an,1x1+・ ・ ・+an,dxd ≤ bn
  • 13. Our solution will be the point that maximizes the Objective Function. Objective Function can be viewed as a direction c(c1, c2,…, cd ) in the d-dimension plane. The set of points satisfying the constraints is called feasible region else infeasible region. Hence our soln. is the point in the feasible region that is extreme in the direction c.
  • 14.
  • 15. In case of molding we have n linear constraints in two variables and we want to find one solution to the set of constraints. We can do this by taking an arbitrary objective function, and then solving the linear program defined by the objective function and the linear constraints. We use following conventions: H is the set of n linear constraints i.e, half-planes: h1 , ... , hn Vector defining objective function: c(cx , cy) Our goal is to find out point (px , py ) such that cx px +cy py is max.
  • 16. Possible case of intersection:
  • 17. To make sure that we get a unique soln. we have to impose restrictions on case ii & iii. Case ii) we add to our linear program two additional constraints that will guarantee that the linear program is bounded. For example, if cx > 0 and cy > 0 we add the constraints px ≤M and py ≤ M, for some large M ∈ R. let these constraints be m1 & m2 . Case iii) we take the lexicographically smallest value.
  • 18. Basis of the algorithm: Let 1≤ i≤ n, and let Ci and vi be feasible region & optimal point of each step.Then we have (i) If vi−1 ∈ hi, then vi = vi−1. (ii) If vi−1 ∈ hi, then either Ci = 0 or vi ∈ li, where li is the line bounding hi.
  • 19. Case ii): finding p on li It can be reduced to 1-D LP problem of finding p on li that maximizes the OF subject to constraints p ∈ Hi-1 .
  • 20. The interval [ xleft : xright ] is our feasible region and xleft or xright the optimal soln. . It take linear time to calculate this ,i.e: O(n).
  • 22.
  • 23. RANDOMIZED LINEAR PROGRAMMING: Worst case time complexity of Increamental LP is O(n2 ) this can be improved if the order of half planes are suitably changed. We use a randomize algorithm to get a random sequence of these half planes. Finally, we get an expected time of O(n).