Learn R Programming

TML (version 2.3.0)

project.pi: Project a point on the tropical projective torus onto a tropical polytope

Description

This function projects points in the tropical projective torus onto a max- or min-plus tropical polytope based on tropical distance

Usage

project.pi(D_s, D, tadd = max)

Value

projection of point D onto the tropical polytope defined by D_s

Arguments

D_s

matrix where each row is a point defining a tropical polytope

D

point to be projected onto D_s

tadd

function; max indicates max-plus addition, min indicates min-plus addition. Defaults to max.

Author

David Barnhill david.barnhill@nps.edu

Examples

Run this code
D_s <-matrix(c(0,0,0,0,2,5,0,3,1),3,3,TRUE)
D <- c(0,7,-1)
project.pi(D_s,D)
project.pi(D_s,D,tadd=min)

Run the code above in your browser using DataLab