A Linear Complementarity Time-Stepping Scheme for Rigid Multibody Dynamics with Nonsmooth Shapes. Gary D. Hart University of Pittsburgh

Similar documents
A Hard Constraint Time-Stepping Approach for Rigid Multibody Dynamics with Joints, Contact and Friction. Gary D. Hart University of Pittsburgh

A constraint-stabilized time-stepping approach for piecewise smooth multibody dynamics

Solving Nonconvex Problems of Multibody Dynamics with Joints, Contact and Small Friction by Successive Convex Relaxation

CONSTRAINT STABILIZATION FOR TIME-STEPPING APPROACHES FOR RIGID MULTIBODY DYNAMICS WITH JOINTS, CONTACT, AND FRICTION

A Geometric Interpretation of Newtonian Impacts with Global Dissipation Index

Contact Handling for Articulated Rigid Bodies Using LCP

Iterative Rigid Multibody Dynamics A Comparison of Computational Methods

Time integration. DVI and HHT time stepping methods in Chrono

Convex Programs. Carlo Tomasi. December 4, 2018

Modeling Friction and Contact in Chrono. Theoretical Background

Yinyu Ye, MS&E, Stanford MS&E310 Lecture Note #06. The Simplex Method

LP Duality: outline. Duality theory for Linear Programming. alternatives. optimization I Idea: polyhedra

An Implicit Time-Stepping Method for Multibody Systems with Intermittent Contact

Chapter 1. Preliminaries

12. Interior-point methods

Constrained Optimization and Lagrangian Duality

On polyhedral approximations of the second-order cone Aharon Ben-Tal 1 and Arkadi Nemirovski 1 May 30, 1999

4. Algebra and Duality

Linear Programming Inverse Projection Theory Chapter 3

Robotic manipulation project

2 M. ANITESCU and F.A.POTRA no accelerations consistent with the contact constraints [3], even in the case where just one contact is involved. A new a

Lehrstuhl B für Mechanik Technische Universität München D Garching Germany

Simulation in Computer Graphics Elastic Solids. Matthias Teschner

Iteration-complexity of first-order penalty methods for convex programming

Motivating examples Introduction to algorithms Simplex algorithm. On a particular example General algorithm. Duality An application to game theory

Stochastic Equilibrium Problems arising in the energy industry

IMES - Center of Mechanics ETH Zentrum, Tannenstrasse 3 CH-8092 Zürich, Switzerland

The Karush-Kuhn-Tucker (KKT) conditions

Lecture 3: Lagrangian duality and algorithms for the Lagrangian dual problem

A projection algorithm for strictly monotone linear complementarity problems.

Example: feasibility. Interpretation as formal proof. Example: linear inequalities and Farkas lemma

Lecture: Convex Optimization Problems

Lecture 1 Introduction

Technical Report TR

Using a Granular Dynamics Code to Investigate the Performance of a Helical Anchoring System Design

Modeling Contact Friction and Joint Friction in Dynamic Robotic Simulation using the Principle of Maximum Dissipation

Solving MPECs Implicit Programming and NLP Methods

Separation, Inverse Optimization, and Decomposition. Some Observations. Ted Ralphs 1 Joint work with: Aykut Bulut 1

Duality Theory of Constrained Optimization

Non-penetrating Rigid Body Simulation

Dual methods and ADMM. Barnabas Poczos & Ryan Tibshirani Convex Optimization /36-725

IE 5531: Engineering Optimization I

3 Development of the Simplex Method Constructing Basic Solution Optimality Conditions The Simplex Method...

Selected Examples of CONIC DUALITY AT WORK Robust Linear Optimization Synthesis of Linear Controllers Matrix Cube Theorem A.

Optimality, Duality, Complementarity for Constrained Optimization

A Geometric Characterization of the Power of Finite Adaptability in Multistage Stochastic and Adaptive Optimization

Nonlinear Optimization for Optimal Control

The dual simplex method with bounds

Chapter 2: Preliminaries and elements of convex analysis

CONSTRAINED NONLINEAR PROGRAMMING

A FRICTION MODEL FOR NON-SINGULAR COMPLEMENTARITY FORMULATIONS FOR MULTIBODY SYSTEMS WITH CONTACTS

Spring 2017 CO 250 Course Notes TABLE OF CONTENTS. richardwu.ca. CO 250 Course Notes. Introduction to Optimization

15-780: LinearProgramming

A user s guide to Lojasiewicz/KL inequalities

16.410/413 Principles of Autonomy and Decision Making

Complementarity Formulation for Multi-Fingered Hand Manipulation with Rolling and Sliding Contacts

Rigid Pavement Stress Analysis

A VARIATIONAL METHOD FOR THE ANALYSIS OF A MONOTONE SCHEME FOR THE MONGE-AMPÈRE EQUATION 1. INTRODUCTION

Uses of duality. Geoff Gordon & Ryan Tibshirani Optimization /

Lagrangian Relaxation in MIP

Lecture 8 Plus properties, merit functions and gap functions. September 28, 2008

Classical regularity conditions

Semidefinite and Second Order Cone Programming Seminar Fall 2012 Project: Robust Optimization and its Application of Robust Portfolio Optimization

12. Interior-point methods

Rigid-Body Dynamics with Friction and Impact

Linear Programming. Larry Blume Cornell University, IHS Vienna and SFI. Summer 2016

Separation, Inverse Optimization, and Decomposition. Some Observations. Ted Ralphs 1 Joint work with: Aykut Bulut 1

Nonlinear Programming, Elastic Mode, SQP, MPEC, MPCC, complementarity

Technical Report TR

CSCI : Optimization and Control of Networks. Review on Convex Optimization

Lagrangean relaxation

CONVERGENCE ANALYSIS OF AN INTERIOR-POINT METHOD FOR NONCONVEX NONLINEAR PROGRAMMING

Dual Proximal Gradient Method

Convex optimization problems. Optimization problem in standard form

8.2.3 Cables and unilateral contact analysis

Learning with Submodular Functions: A Convex Optimization Perspective

A Brief Review on Convex Optimization

Fractals. R. J. Renka 11/14/2016. Department of Computer Science & Engineering University of North Texas. R. J. Renka Fractals

INTERIOR-POINT METHODS ROBERT J. VANDERBEI JOINT WORK WITH H. YURTTAN BENSON REAL-WORLD EXAMPLES BY J.O. COLEMAN, NAVAL RESEARCH LAB

Computational Integer Programming Universidad de los Andes. Lecture 1. Dr. Ted Ralphs

Modeling and control of impact in mechanical systems: theory and experimental results

B553 Lecture 3: Multivariate Calculus and Linear Algebra Review

Explore Kapitza s Pendulum Behavior via Trajectory Optimization. Yifan Hou

subject to (x 2)(x 4) u,

Lecture Simplex Issues: Number of Pivots. ORIE 6300 Mathematical Programming I October 9, 2014

CO 250 Final Exam Guide

Approximate Farkas Lemmas in Convex Optimization

Critical Reading of Optimization Methods for Logical Inference [1]

Lecture 5: September 12

CSCI 1951-G Optimization Methods in Finance Part 01: Linear Programming

Convex Optimization and SVM

ON A CLASS OF NONSMOOTH COMPOSITE FUNCTIONS

BILLIARD DYNAMICS OF BOUNCING DUMBBELL

Corrector-predictor methods for monotone linear complementarity problems in a wide neighborhood of the central path

Optimization. A first course on mathematics for economists

ADVANCES IN CONVEX OPTIMIZATION: CONIC PROGRAMMING. Arkadi Nemirovski

Lagrangian-Conic Relaxations, Part I: A Unified Framework and Its Applications to Quadratic Optimization Problems

4. Convex optimization problems

NOTE ON ASYMPTOTICALLY CONICAL EXPANDING RICCI SOLITONS

Limit analysis of brick masonry shear walls with openings under later loads by rigid block modeling

Transcription:

A Linear Complementarity Time-Stepping Scheme for Rigid Multibody Dynamics with Nonsmooth Shapes. Gary D. Hart University of Pittsburgh 1

Introduction Nonsmooth rigid multibody dynamics (NRMD) methods attempt to predict the position and velocity evolution of a group of rigid particles subject to certain constraints and forces. Simulating the dynamics of a system with several rigid bodies with joint, contact, and friction constraints is important part in many areas, granular and rock dynamics masonry stability analysis simulation of concrete obstacle response to explosion tumbling mill design interactive virtual reality robot simulation and design 2

Advantages of LCP Based Approaches We have an existing solution for any choice of parameters. We do not suffer from the lack of a solution that can happen in piecewise DAE and acceleration-force LCP approach. We can quickly and easily detect collisions and interpenetrations without suffering from artificial stiffness introduced by some methods, like penalty approach methods. We can implement a stable approach like current trend that can produce a linear complementarity scheme for nonsmooth shapes for large fixed time-step. 3

Nonsmooth shapes problems Previous methods have been formulated only for differentiable shapes, and thus simulations must be stopped any time a nonsmooth point is crossed. If we had an easy way to compute the depth of penetration, we could proceed very easily with much the same anaylsis. We must reconsider our metric so that we can accommodate nonsmooth convex bodies. 4

Euclidean Distance: Good, Bad, & Ugly Figure 1: Euclidean Distance and Penetration Good: Computes the distance between separated objects. Bad: No description of extent of penetration, when it exists. Ugly: We need to be able to determine depth of penetration. 5

Signed Distance and Noninterpenetration Euclidean distance can detect contact, but not interpenetration Signed distance can detect contact and interpenetration We need a signed distance function that satisfies these properties for convex bodies P 1 and P 2 : 1. P 1 and P 2 interpenetrate if and only if dist(p 1, P 2 ) < 0, 2. P 1 and P 2 do not intersect if and only if dist(p 1, P 2 ) > 0, 3. P 1 and P 2 are in contact if and only if dist(p 1, P 2 ) = 0. 6

Penetration Depth (PD) Definition 1 Let P i be a convex polyhedron for i = 1,2. The penetration depth between the two bodies P 1 and P 2 is defined formally as P D(P 1, P 2 ) = min{ d interior(p 1 + d) P 2 = }. (1) This is, more precisely, the Minkowski Penetration Depth. Note that we can slightly alter the Penetration Depth as defined to be a signed distance between two convex polyhedra. 7

Problems Computing PD The worst case deterministic scenario in computing the PD using Minkowski sums has complexity O(m 2 + n 2 ) On the other hand, Agarwal et. al. have an produced a stochastic method for approximating the PD of complexity of about O(m 3/4+ɛ n 3/4+ɛ ) for any ɛ > 0. Question: Is there a faster deterministic method using some metric which is similar (at least in the limit) to the PD? 8

Ultimate Goal We want to define a new measure that C1: Easily detects collision and penetration of two convex bodies, C2: Is computationally efficient, C3: Is computationally fast, and C4: Is metrically equivalent to the signed Euclidean distance when close to a contact. We want to use this measure to simulate polyhedral multibody contact problems. 9

Expansion and Contraction of Convex Polyhedra Definition 2 We define CP(A, b, x o ) to be the convex polyhedron P defined by the linear inequalities Ax b with an interior point x o. We will often just write P = CP(A, b, x o ). Definition 3 Let P = CP(A, b, x o ). Then for any nonnegative real number t, the expansion (contraction) of P with respect to the point x o is defined to be P (x o, t) = {x Ax tb + (1 t)ax o } 10

Example of Expansion Figure 2: Demonstration of growth 11

Our New Signed Distance: Ratio Metric Definition 4 Let P i = CP (A i, b i, x i ) be a convex polyhedron for i = 1,2. Then the ratio measure between the two sets is given by ˆr(P 1, P 2 ) = min{t P 1 (x 1, t) P 2 (x 2, t) }, (2) and the corresponding ratio metric is given by ρ(p 1, P 2 ) = ˆr(P 1, P 2 ) 1. (3) ˆr(P 1, P 2 ) 12

Ratio Metric Equivalence to PD Theorem 5 Let P i be a convex polyhedron for i = 1,2, and s be the Penetration Depth signed distance between the two bodies. Then there exists nonnegative constants c 1 and c 2 such that the ratio metric between the two sets satisfies the relationship s c 1 ρ(p 1, P 2 ) s c 2 (4) 13

Alternative Formulation Let P i = CP (A i, b i, x i ). The equation (2) of Definition 4 can be written as ˆr(P 1, P 2 ) = min{t A i x tb i + (1 t)a i x i, i = 1, 2}. (5) We have an easy way to compute the Ratio Metric because this formulation is a linear program in a 3-dimensional space!!! 14

Ratio Metric Measures Up C1: We can handle convex polyhedral bodies with this elegant, yet simple way to detect collision and penetration. C2: This metric has simplicity, in that it only involves solving a linear programming problem, which is well known. C3: Since our resulting linear program has a primal space of dimension 3, our Ratio Metric has complexity O(m + n). (N. Megiddo) C4: It follows from Theorem 5 that the Ratio Metric is metrically equivalent to the signed Euclidean distance. 15

Ratio Metric Advantages Distances with our metric are easier to calculate than using the Penetration Distance Distances with our metric are faster to calculate than using the Penetration Distance. We can theoretically solve rigid multibody contact problems of arbitrarily fixed dimension k. Because the Ratio Metric is metrically equivalent to the signed Euclidean distance, we will get the same solution as the time-steps asymptotically approach zero. 16

Detecting Collisions Figure 3: Visual representation of expansion or contraction We expand or contract the two bodies until we reach contact. 17

We Use Velocity-Impulse LCP-Based Approach Advantages Solution exists for any choice of parameters Does not suffer from artificial stiffness Solves only one linear complementarity problem per step Disadvantages Subproblem becomes harder because it has hard constraints 18

Contact Model Contact configuration described by the (signed) distance function d = Φ(q), which is defined for some values of the interpenetration. Feasible set: Φ(q) 0. Contact forces are compressive, c n 0. Contact forces act only when the contact constraint is exactly satisfied, or Φ(q) is complementary to c n or Φ(q)c n = 0, or Φ(q) c n. 19

Noninterpenetration and Complementarity The contact must be active before a nonzero compression impulse can act. Therefore, we have: Φ (j) (q) 0, j = 1, 2,..., p c (j) n 0, j = 1, 2,..., p Φ(q) T c n = 0 This can be expressed by the complementarity constraint Φ (j) (q) 0 c (j) n 0, j = 1, 2,..., p. (6) 20

Discretized Friction Model Discretized Constraints: The set D(q)β where β µc n is approximated by a polygonal convex subset: D(q) β, β 0. Polygonal cone approximation to the Coulomb cone ( 3D). Conic constraints: β µc n. 1 Frictional Constraints: β = argmin β 0 v T D(q) β 21

Coulomb Friction Model and Complementarity Tangential Generators: D(q) = [D (j 1 ) (q), D (j 2) (q),..., D (j s) (q)] Tangential Symmetry: d (j) i D j = d (j) i D j Conic constraints: β µc n, with µ friction coefficient. Max Dissipation Constraints: β = argmin β µc n v T D(q) β. Retarding Constraint: Tangential velocity satisfies v T = λ = v T D(q) β β. D (j)t (q)v + λ (j) e (j) 0 β (j) 0, µc (j) n e (j)t β (j) 0 λ (j) 0. (7) 22

Notation and Definitions Joint Constraints are described by the equations Θ (i) (q) = 0, i = 1, 2,..., m for sufficiently smooth functions Θ (i) (q), with gradients ν (i) (q) = q Θ (i) (q), i = 1, 2,..., m. Noninterpenetration constraints are still written as Φ (j) (q) 0, j = 1, 2,..., p. but now we will use our ratio metric. Infeasibility of the constraints are measured by { I(q) = Φ (j) (q), Θ (i) (q) max 1 j p,1 i m }. 23

Choosing the active set A and detecting collision A(q) = { } j Φ (j) (q) ˆɛ, 1 j p. (8) No need to stop the simulation if ˆɛ is appropriately chosen A good guideline for this choice is ˆɛ = v max h, where h is of the order of the expected size of the timestep and v max is the expected range of the velocity 24

Defining an Event Let Φ (j) (q) = 0 for some position q. Then Two bodies j 1 and j 2 are in contact. Contact regions are convex combinations of extreme points. Extreme points are convex combinations of simple events. In 2D, corner-on-face intersections In 3D, corner-on-face or edge-on-edge intersections Each event produces a consistent system of equations. In 2D we get a 3 x 3 system In 3D we get a 4 x 4 system 25

Choosing the Normal Vectors 1. Get the active set A. 2. For each index j A, locate the proximity events Proximity events are events for ˆΦ(q) = Φ(q) δ for some δ < ˆɛ and whose corresponding points are close to being within both bodies j 1 and j 2. For each index j A, there are N j proximity events 3. For each proximity event, j k, use the Implicit Function Theorem to find the gradient of the ratio metric, which we call the normal vector n (j k) at event j k. 26

Constraint Linearization Enforce geometric constraints at the velocity level by linearization of the mappings Θ (i) and Φ (j). Linearization of joint constraints: ν (i)t (q (l) )v (l+1) + Θ(i) (q (l) ) h l = 0, i = 1, 2,..., m. Linearization of noninterpenetration constraints: n (j k) T (q (l) )v (l+1) + Φ(j) (q (l) ) h l 0 c (j) n 0, 1 j k N j Linearization allows us to proceed with fixed time steps in spite of collisions. 27

LCP Form of the Integration Step We now rewrite the Time-Stepping Equations into the LCP form: M (l) v (l+1) νc ν ñc n Dβ = q (l) ν T v (l+1) = Υ ñ T v (l+1) c n 0 D T (l+1) v +Ẽλ 0 β 0 where, q (l) = Mv (l) h l k (l) µc n ẼT β 0 λ 0 (9) 28

Constraint Stabilization Let the time-stepping algorithm be applied over a finite time interval [0, T ], with time steps h l > 0 satisfying N 1 i=0 h l = T and h l 1 h l c h, i = 1, 2,..., N 1. If the system is initially feasible, then, under modest conditions, there exist positive constants H, V, and C c such that 1. v (l) V, for 1 l N and 2. I(q (l) ) C c v (l) 2 h 2 l 1, for 1 l N. Note: This result has been proven to hold for smooth bodies. We expect to show that it also holds for piecewise smooth bodies. 29

Results to Date 1. We have successfully implemented our procedure into a time-stepping approach for rigid multibody dynamics with joints, contact and friction. 2. Our method has been applied with 4 orders of magnitude larger time steps than other methods. 3. We have successfully simulated a true 3-dimensional problem. 30

Figure 4: Feasibility Comparison - Time steps 0.1 vs 0.01 The error seems to decrease by a factor of 100, which is consistent with the O(h 2 ) behavior in our Constraint Stabilization Theorem. 31

Conclusions and Future Work We define a method for polyhedral multibody dynamics for contacts, joints, and friction while solving only linear complementarity problem per step. Our method does not need to stop and detect collisions explicitly and can advance with a constant time step and predictable amount of effort per step. Future work: We want to explicitly show that our method achieves constraint stabilization. 32

Thanks Mihai Anitescu, Argonne National Laboratory Michael Ferris and Todd Munson for providing and maintaining PATH, a package for solving general linear complementarity problems 33