Skip to content

Commit

Permalink
Last year benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
mldiego committed Jun 5, 2020
1 parent 69b6e6d commit 7e8c7a4
Show file tree
Hide file tree
Showing 9 changed files with 154 additions and 0 deletions.
Binary file added benchmarks/ACC/controller_5_20.mat
Binary file not shown.
Binary file added benchmarks/ACC/controller_5_20.onnx
Binary file not shown.
21 changes: 21 additions & 0 deletions benchmarks/ACC/dynamicsACC.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
function [dx]=dynamicsACC(t,x,a_ego)

mu=0.0001; % friction parameter

% x1 = lead_car position
% x2 = lead_car velocity
% x3 = lead_car internal state

% x4 = ego_car position
% x5 = ego_car velocity
% x6 = ego_car internal state

% lead car dynamics
a_lead = -2;
dx(1,1)=x(2);
dx(2,1) = x(3);
dx(3,1) = -2 * x(3) + 2 * a_lead - mu*x(2)^2;
% ego car dyanmics
dx(4,1)= x(5);
dx(5,1) = x(6);
dx(6,1) = -2 * x(6) + 2 * a_ego - mu*x(5)^2;
Binary file added benchmarks/Benchmark10-Bycicle/controller.mat
Binary file not shown.
37 changes: 37 additions & 0 deletions benchmarks/Benchmark10-Bycicle/controller.onnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Sherlock->Onnx:�

X
W1
B1O1"FC

O1R1"ReLU

R1
W2
B2O2"FC

O2Y"ReLUMLPZ
X


Z
W1

�
Z
B1

�
Z
W2


�Z
B2


b
Y

�
B
Expand Down
20 changes: 20 additions & 0 deletions benchmarks/Benchmark10-Bycicle/dynamics10.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
function [dx] = dynamics10(t,x,u,w)
% Ex_car_model
%vehicleODE Bicycle model of a vehicle with
% states
% x(1), x(2): x,y positions
% x(3): Yaw angle (\psi)
% x(4): velocity
% control inputs
% u(1): acceleration m/s^2
% u(2): steering angle of front wheel
% disturbance input
% w: disturbance with a range (-10^-4,10^4)
% Initial state range [9.5, 9.55] × [-4.5, -4.45] × [2.1, 2.11] × [1.5, 1.51]

dx(1,1) = x(4) * cos(x(3));
dx(2,1) = x(4) * sin(x(3));
dx(3,1) = u(2);
dx(4,1) = u(1) + w;

end
Binary file added benchmarks/Benchmark9-Tora/controller.mat
Binary file not shown.
65 changes: 65 additions & 0 deletions benchmarks/Benchmark9-Tora/controller.onnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
Sherlock->Onnx:�

X
W1
B1O1"FC

O1R1"ReLU

R1
W2
B2O2"FC

O2R2"ReLU

R2
W3
B3O3"FC

O3R3"ReLU

R3
W4
B4O4"FC

O4Y"ReLUMLPZ
X


Z
W1

d
Z
B1

d
Z
W2

d
dZ
B2

d
Z
W3

d
dZ
B3

d
Z
W4


dZ
B4


b
Y


B
11 changes: 11 additions & 0 deletions benchmarks/Benchmark9-Tora/dynamics9.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function [dx] = dynamics9(t,x,u)
% Ex_tora
% Initial state range:
% [0.6, 0.7] × [-0.7, -0.6] × [-0.4, -0.3] × [0.5, 0.6]

dx(1,1) = x(2);
dx(2,1) = - x(1) + 0.1*sin(x(3));
dx(3,1) = x(4);
dx(4,1) = u;

end

0 comments on commit 7e8c7a4

Please sign in to comment.