Skip to content

Commit 95fea61

Browse files
committed
Some minor modifications to reachOptions
1 parent 58a0d35 commit 95fea61

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

code/nnv/examples/Submission/VNN_COMP2024/run_vnncomp2024_instance.m

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
warning("Working on adding support to other vnnlib properties");
5959
end
6060

61-
cEX_time = toc(t)
61+
cEX_time = toc(t);
6262

6363
%% 3) UNSAT?
6464

@@ -470,7 +470,7 @@
470470
needReshape = 1;
471471
reachOptions = struct;
472472
reachOptions.reachMethod = 'relax-star-area';
473-
reachOptions.relaxFactor = 0.9;
473+
reachOptions.relaxFactor = 1;
474474
reachOptionsList{1} = reachOptions;
475475
reachOptions.reachMethod = 'relax-star-area';
476476
reachOptions.relaxFactor = 0.5;
@@ -513,13 +513,23 @@
513513
% cora benchmark: onnx 2 nnv
514514
net = importNetworkFromONNX(onnx, "InputDataFormats","BC", "OutputDataFormats","BC");
515515
nnvnet = matlab2nnv(net);
516-
reachOptions = struct;
517-
reachOptions.reachMethod = 'relax-star-area';
518-
reachOptions.relaxFactor = 0.5;
519-
reachOptionsList{1} = reachOptions;
520-
reachOptions = struct;
521-
reachOptions.reachMethod = 'approx-star'; % default parameters
522-
reachOptionsList{2} = reachOptions;
516+
if contains(onnx, '-set')
517+
reachOptions = struct;
518+
reachOptions.reachMethod = 'relax-star-area';
519+
reachOptions.relaxFactor = 0.5;
520+
reachOptionsList{1} = reachOptions;
521+
reachOptions = struct;
522+
reachOptions.reachMethod = 'approx-star'; % default parameters
523+
reachOptionsList{2} = reachOptions;
524+
else
525+
reachOptions = struct;
526+
reachOptions.reachMethod = 'relax-star-area';
527+
reachOptions.relaxFactor = 0.9;
528+
reachOptionsList{1} = reachOptions;
529+
reachOptions.reachMethod = 'relax-star-area';
530+
reachOptions.relaxFactor = 0.7;
531+
reachOptionsList{1} = reachOptions;
532+
end
523533

524534
elseif contains(category, "lsnc")
525535
% lyapunov benchmark: onnx to nnv (barely, some IR and opset version differences)

0 commit comments

Comments
 (0)