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 notation
Asymptotic notationAsymptotic notation
Asymptotic notation
sajinis3
 
4.5 tan and cot.ppt worked
4.5   tan and cot.ppt worked4.5   tan and cot.ppt worked
4.5 tan and cot.ppt worked
Jonna Ramsey
 
4.5 sec and csc worked 3rd
4.5   sec and csc worked 3rd4.5   sec and csc worked 3rd
4.5 sec and csc worked 3rd
Jonna Ramsey
 
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
 
Random Number Generators 2018
Random Number Generators 2018Random Number Generators 2018
Random Number Generators 2018
rinnocente
 
Graphing day 1 worked
Graphing day 1 workedGraphing day 1 worked
Graphing day 1 worked
Jonna Ramsey
 
Regret Minimization in Multi-objective Submodular Function Maximization
Regret Minimization in Multi-objective Submodular Function MaximizationRegret Minimization in Multi-objective Submodular Function Maximization
Regret Minimization in Multi-objective Submodular Function Maximization
Tasuku Soma
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic Notations
Rishabh Soni
 
The low-rank basis problem for a matrix subspace
The low-rank basis problem for a matrix subspaceThe low-rank basis problem for a matrix subspace
The low-rank basis problem for a matrix subspace
Tasuku Soma
 
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
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
asymptotic notations i
asymptotic notations iasymptotic notations i
asymptotic notations i
Ali mahmood
 
Asymptotic notation
Asymptotic notationAsymptotic notation
Asymptotic notation
Dr Shashikant Athawale
 
An Introduction to Elleptic Curve Cryptography
An Introduction to Elleptic Curve CryptographyAn Introduction to Elleptic Curve Cryptography
An Introduction to Elleptic Curve Cryptography
Derek Callaway
 
4.7 inverse functions.ppt worked
4.7   inverse functions.ppt worked4.7   inverse functions.ppt worked
4.7 inverse functions.ppt worked
Jonna Ramsey
 
Introduction to Algorithm
Introduction to AlgorithmIntroduction to Algorithm
Introduction to Algorithm
Manash Kumar Mondal
 
Asymptotic Notation
Asymptotic NotationAsymptotic Notation
Asymptotic Notation
sohelranasweet
 
Asymptotic notation
Asymptotic notationAsymptotic notation
Asymptotic notation
Saranya Natarajan
 
ICPC Asia::Tokyo 2014 Problem J – Exhibition
ICPC Asia::Tokyo 2014 Problem J – ExhibitionICPC Asia::Tokyo 2014 Problem J – Exhibition
ICPC Asia::Tokyo 2014 Problem J – Exhibition
irrrrr
 
Numerical
NumericalNumerical
Numerical
student
 

What's hot (20)

Asymptotic notation
Asymptotic notationAsymptotic notation
Asymptotic notation
 
4.5 tan and cot.ppt worked
4.5   tan and cot.ppt worked4.5   tan and cot.ppt worked
4.5 tan and cot.ppt worked
 
4.5 sec and csc worked 3rd
4.5   sec and csc worked 3rd4.5   sec and csc worked 3rd
4.5 sec and csc worked 3rd
 
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
 
Random Number Generators 2018
Random Number Generators 2018Random Number Generators 2018
Random Number Generators 2018
 
Graphing day 1 worked
Graphing day 1 workedGraphing day 1 worked
Graphing day 1 worked
 
Regret Minimization in Multi-objective Submodular Function Maximization
Regret Minimization in Multi-objective Submodular Function MaximizationRegret Minimization in Multi-objective Submodular Function Maximization
Regret Minimization in Multi-objective Submodular Function Maximization
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic Notations
 
The low-rank basis problem for a matrix subspace
The low-rank basis problem for a matrix subspaceThe low-rank basis problem for a matrix subspace
The low-rank basis problem for a matrix subspace
 
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
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notations
 
asymptotic notations i
asymptotic notations iasymptotic notations i
asymptotic notations i
 
Asymptotic notation
Asymptotic notationAsymptotic notation
Asymptotic notation
 
An Introduction to Elleptic Curve Cryptography
An Introduction to Elleptic Curve CryptographyAn Introduction to Elleptic Curve Cryptography
An Introduction to Elleptic Curve Cryptography
 
4.7 inverse functions.ppt worked
4.7   inverse functions.ppt worked4.7   inverse functions.ppt worked
4.7 inverse functions.ppt worked
 
Introduction to Algorithm
Introduction to AlgorithmIntroduction to Algorithm
Introduction to Algorithm
 
Asymptotic Notation
Asymptotic NotationAsymptotic Notation
Asymptotic Notation
 
Asymptotic notation
Asymptotic notationAsymptotic notation
Asymptotic notation
 
ICPC Asia::Tokyo 2014 Problem J – Exhibition
ICPC Asia::Tokyo 2014 Problem J – ExhibitionICPC Asia::Tokyo 2014 Problem J – Exhibition
ICPC Asia::Tokyo 2014 Problem J – Exhibition
 
Numerical
NumericalNumerical
Numerical
 

Similar to Linear programming in computational geometry

Algorithms DM
Algorithms DMAlgorithms DM
Algorithms DM
Rokonuzzaman Rony
 
bv_cvxslides (1).pdf
bv_cvxslides (1).pdfbv_cvxslides (1).pdf
bv_cvxslides (1).pdf
SantiagoGarridoBulln
 
Project in Calcu
Project in CalcuProject in Calcu
Project in Calcu
patrickpaz
 
Optimization introduction
Optimization introductionOptimization introduction
Optimization introduction
helalmohammad2
 
Big oh Representation Used in Time complexities
Big oh Representation Used in Time complexitiesBig oh Representation Used in Time complexities
Big oh Representation Used in Time complexities
LAKSHMITHARUN PONNAM
 
Calculus Assignment Help
 Calculus Assignment Help Calculus Assignment Help
Calculus Assignment Help
Math Homework Solver
 
Function
Function Function
06_finite_elements_basics.ppt
06_finite_elements_basics.ppt06_finite_elements_basics.ppt
06_finite_elements_basics.ppt
Aditya765321
 
5994944.ppt
5994944.ppt5994944.ppt
5994944.ppt
ssuserc1ed5e
 
LP linear programming (summary) (5s)
LP linear programming (summary) (5s)LP linear programming (summary) (5s)
LP linear programming (summary) (5s)
Dionísio Carmo-Neto
 
Differential Equations Assignment Help
Differential Equations Assignment HelpDifferential Equations Assignment Help
Differential Equations Assignment Help
Maths Assignment Help
 
SURF 2012 Final Report(1)
SURF 2012 Final Report(1)SURF 2012 Final Report(1)
SURF 2012 Final Report(1)
Eric Zhang
 
Contour
ContourContour
Combinatorial optimization CO-2
Combinatorial optimization CO-2Combinatorial optimization CO-2
Combinatorial optimization CO-2
man003
 
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
 
dynamic-programming
dynamic-programmingdynamic-programming
dynamic-programming
MuhammadSheraz836877
 
Differential Equations Assignment Help
Differential Equations Assignment HelpDifferential Equations Assignment Help
Differential Equations Assignment Help
Math Homework Solver
 
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
 
Calculus Assignment Help
Calculus Assignment HelpCalculus Assignment Help
Calculus Assignment Help
Maths Assignment Help
 
CHAP6 Limits and Continuity.pdf
CHAP6 Limits and Continuity.pdfCHAP6 Limits and Continuity.pdf
CHAP6 Limits and Continuity.pdf
mekkimekki5
 

Similar to Linear programming in computational geometry (20)

Algorithms DM
Algorithms DMAlgorithms DM
Algorithms DM
 
bv_cvxslides (1).pdf
bv_cvxslides (1).pdfbv_cvxslides (1).pdf
bv_cvxslides (1).pdf
 
Project in Calcu
Project in CalcuProject in Calcu
Project in Calcu
 
Optimization introduction
Optimization introductionOptimization introduction
Optimization introduction
 
Big oh Representation Used in Time complexities
Big oh Representation Used in Time complexitiesBig oh Representation Used in Time complexities
Big oh Representation Used in Time complexities
 
Calculus Assignment Help
 Calculus Assignment Help Calculus Assignment Help
Calculus Assignment Help
 
Function
Function Function
Function
 
06_finite_elements_basics.ppt
06_finite_elements_basics.ppt06_finite_elements_basics.ppt
06_finite_elements_basics.ppt
 
5994944.ppt
5994944.ppt5994944.ppt
5994944.ppt
 
LP linear programming (summary) (5s)
LP linear programming (summary) (5s)LP linear programming (summary) (5s)
LP linear programming (summary) (5s)
 
Differential Equations Assignment Help
Differential Equations Assignment HelpDifferential Equations Assignment Help
Differential Equations Assignment Help
 
SURF 2012 Final Report(1)
SURF 2012 Final Report(1)SURF 2012 Final Report(1)
SURF 2012 Final Report(1)
 
Contour
ContourContour
Contour
 
Combinatorial optimization CO-2
Combinatorial optimization CO-2Combinatorial optimization CO-2
Combinatorial optimization CO-2
 
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...
 
dynamic-programming
dynamic-programmingdynamic-programming
dynamic-programming
 
Differential Equations Assignment Help
Differential Equations Assignment HelpDifferential Equations Assignment Help
Differential Equations Assignment Help
 
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
 
Calculus Assignment Help
Calculus Assignment HelpCalculus Assignment Help
Calculus Assignment Help
 
CHAP6 Limits and Continuity.pdf
CHAP6 Limits and Continuity.pdfCHAP6 Limits and Continuity.pdf
CHAP6 Limits and Continuity.pdf
 

More from Subhashis Hazarika

DNN Model Interpretability
DNN Model InterpretabilityDNN Model Interpretability
DNN Model Interpretability
Subhashis Hazarika
 
Deep_Learning_Frameworks_CNTK_PyTorch
Deep_Learning_Frameworks_CNTK_PyTorchDeep_Learning_Frameworks_CNTK_PyTorch
Deep_Learning_Frameworks_CNTK_PyTorch
Subhashis Hazarika
 
Word2Vec Network Structure Explained
Word2Vec Network Structure ExplainedWord2Vec Network Structure Explained
Word2Vec Network Structure Explained
Subhashis Hazarika
 
Probabilistic Graph Layout for Uncertain Network Visualization
Probabilistic Graph Layout for Uncertain Network VisualizationProbabilistic Graph Layout for Uncertain Network Visualization
Probabilistic Graph Layout for Uncertain Network Visualization
Subhashis Hazarika
 
An analysis of_machine_and_human_analytics_in_classification
An analysis of_machine_and_human_analytics_in_classificationAn analysis of_machine_and_human_analytics_in_classification
An analysis of_machine_and_human_analytics_in_classification
Subhashis Hazarika
 
Uncertainty aware multidimensional ensemble data visualization and exploration
Uncertainty aware multidimensional ensemble data visualization and explorationUncertainty aware multidimensional ensemble data visualization and exploration
Uncertainty aware multidimensional ensemble data visualization and exploration
Subhashis Hazarika
 
CSE5559::Visualizing the Life and Anatomy of Cosmic Particles
CSE5559::Visualizing the Life and Anatomy of Cosmic ParticlesCSE5559::Visualizing the Life and Anatomy of Cosmic Particles
CSE5559::Visualizing the Life and Anatomy of Cosmic Particles
Subhashis Hazarika
 
Visualizing the variability of gradient in uncertain 2d scalarfield
Visualizing the variability of gradient in uncertain 2d scalarfieldVisualizing the variability of gradient in uncertain 2d scalarfield
Visualizing the variability of gradient in uncertain 2d scalarfield
Subhashis Hazarika
 
Sparse PDF Volumes for Consistent Multi-resolution Volume Rendering
Sparse PDF Volumes for Consistent Multi-resolution Volume RenderingSparse PDF Volumes for Consistent Multi-resolution Volume Rendering
Sparse PDF Volumes for Consistent Multi-resolution Volume Rendering
Subhashis Hazarika
 
Visualization of uncertainty_without_a_mean
Visualization of uncertainty_without_a_meanVisualization of uncertainty_without_a_mean
Visualization of uncertainty_without_a_mean
Subhashis Hazarika
 
Semi automatic vortex extraction in 4 d pc-mri cardiac blood flow data using ...
Semi automatic vortex extraction in 4 d pc-mri cardiac blood flow data using ...Semi automatic vortex extraction in 4 d pc-mri cardiac blood flow data using ...
Semi automatic vortex extraction in 4 d pc-mri cardiac blood flow data using ...
Subhashis Hazarika
 
Graph cluster randomization
Graph cluster randomizationGraph cluster randomization
Graph cluster randomization
Subhashis Hazarika
 
CERN summer presentation
CERN summer presentationCERN summer presentation
CERN summer presentation
Subhashis Hazarika
 

More from Subhashis Hazarika (13)

DNN Model Interpretability
DNN Model InterpretabilityDNN Model Interpretability
DNN Model Interpretability
 
Deep_Learning_Frameworks_CNTK_PyTorch
Deep_Learning_Frameworks_CNTK_PyTorchDeep_Learning_Frameworks_CNTK_PyTorch
Deep_Learning_Frameworks_CNTK_PyTorch
 
Word2Vec Network Structure Explained
Word2Vec Network Structure ExplainedWord2Vec Network Structure Explained
Word2Vec Network Structure Explained
 
Probabilistic Graph Layout for Uncertain Network Visualization
Probabilistic Graph Layout for Uncertain Network VisualizationProbabilistic Graph Layout for Uncertain Network Visualization
Probabilistic Graph Layout for Uncertain Network Visualization
 
An analysis of_machine_and_human_analytics_in_classification
An analysis of_machine_and_human_analytics_in_classificationAn analysis of_machine_and_human_analytics_in_classification
An analysis of_machine_and_human_analytics_in_classification
 
Uncertainty aware multidimensional ensemble data visualization and exploration
Uncertainty aware multidimensional ensemble data visualization and explorationUncertainty aware multidimensional ensemble data visualization and exploration
Uncertainty aware multidimensional ensemble data visualization and exploration
 
CSE5559::Visualizing the Life and Anatomy of Cosmic Particles
CSE5559::Visualizing the Life and Anatomy of Cosmic ParticlesCSE5559::Visualizing the Life and Anatomy of Cosmic Particles
CSE5559::Visualizing the Life and Anatomy of Cosmic Particles
 
Visualizing the variability of gradient in uncertain 2d scalarfield
Visualizing the variability of gradient in uncertain 2d scalarfieldVisualizing the variability of gradient in uncertain 2d scalarfield
Visualizing the variability of gradient in uncertain 2d scalarfield
 
Sparse PDF Volumes for Consistent Multi-resolution Volume Rendering
Sparse PDF Volumes for Consistent Multi-resolution Volume RenderingSparse PDF Volumes for Consistent Multi-resolution Volume Rendering
Sparse PDF Volumes for Consistent Multi-resolution Volume Rendering
 
Visualization of uncertainty_without_a_mean
Visualization of uncertainty_without_a_meanVisualization of uncertainty_without_a_mean
Visualization of uncertainty_without_a_mean
 
Semi automatic vortex extraction in 4 d pc-mri cardiac blood flow data using ...
Semi automatic vortex extraction in 4 d pc-mri cardiac blood flow data using ...Semi automatic vortex extraction in 4 d pc-mri cardiac blood flow data using ...
Semi automatic vortex extraction in 4 d pc-mri cardiac blood flow data using ...
 
Graph cluster randomization
Graph cluster randomizationGraph cluster randomization
Graph cluster randomization
 
CERN summer presentation
CERN summer presentationCERN summer presentation
CERN summer presentation
 

Recently uploaded

C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
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
 
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
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
สมใจ จันสุกสี
 
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
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
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
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
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
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
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
 
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
 

Recently uploaded (20)

C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
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
 
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...
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
 
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
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
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
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
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
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
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
 
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” .
 

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).