powered by
This function projects points in the tropical projective torus onto a max- or min-plus tropical polytope based on tropical distance
project.pi(D_s, D, tadd = max)
projection of point D onto the tropical polytope defined by D_s
matrix where each row is a point defining a tropical polytope
point to be projected onto D_s
function; max indicates max-plus addition, min indicates min-plus addition. Defaults to max.
David Barnhill david.barnhill@nps.edu
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