Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.1K Views
|
4 Replies
|
1 Total Like
View groups...
Share
Share this post:

Tropical Algebra (MinPlus/MaxPlus)

Hi, my first question is on how to make tropical calculations on Mathematica, like tropical matrix addition, multiplication, powers and so on.
for instance, if A,B are tropical matrices, compute
A⊕B, A⊗B, A^⊗B
Secondly, If A,B and U are given matrices, how can i solve the system of equations below for x and y;
ax=xa,
by=yb,
u=xy.
Thank you.

POSTED BY: Ahmad Rufa'i
4 Replies

Thank so much Mr. Marco for your help.

POSTED BY: Ahmad Rufa'i
Posted 2 years ago

Crossposted here.

POSTED BY: Rohit Namjoshi

Thank you so much, Mr. Rohit.

POSTED BY: Ahmad Rufa'i

Hi there,

this might be some definitions that could help:

x_\[CirclePlus]y_ := Max[x, y]
x_\[CircleTimes]y_ := x + y
mplus[x_, y_] := MapThread[Max, {x, y}]
mtimes[x_, y_] := Inner[Plus, x, y, Max] 
scalarplus[x_, y_] := Outer[Max, {x}, y]

see also max plus on Community

Cheers, Marco

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard