Skip to content

Commit

Permalink
Some minor modifications to reachOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mldiego committed Jul 13, 2024
1 parent 58a0d35 commit 95fea61
Showing 1 changed file with 19 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
warning("Working on adding support to other vnnlib properties");
end

cEX_time = toc(t)
cEX_time = toc(t);

%% 3) UNSAT?

Expand Down Expand Up @@ -470,7 +470,7 @@
needReshape = 1;
reachOptions = struct;
reachOptions.reachMethod = 'relax-star-area';
reachOptions.relaxFactor = 0.9;
reachOptions.relaxFactor = 1;
reachOptionsList{1} = reachOptions;
reachOptions.reachMethod = 'relax-star-area';
reachOptions.relaxFactor = 0.5;
Expand Down Expand Up @@ -513,13 +513,23 @@
% cora benchmark: onnx 2 nnv
net = importNetworkFromONNX(onnx, "InputDataFormats","BC", "OutputDataFormats","BC");
nnvnet = matlab2nnv(net);
reachOptions = struct;
reachOptions.reachMethod = 'relax-star-area';
reachOptions.relaxFactor = 0.5;
reachOptionsList{1} = reachOptions;
reachOptions = struct;
reachOptions.reachMethod = 'approx-star'; % default parameters
reachOptionsList{2} = reachOptions;
if contains(onnx, '-set')
reachOptions = struct;
reachOptions.reachMethod = 'relax-star-area';
reachOptions.relaxFactor = 0.5;
reachOptionsList{1} = reachOptions;
reachOptions = struct;
reachOptions.reachMethod = 'approx-star'; % default parameters
reachOptionsList{2} = reachOptions;
else
reachOptions = struct;
reachOptions.reachMethod = 'relax-star-area';
reachOptions.relaxFactor = 0.9;
reachOptionsList{1} = reachOptions;
reachOptions.reachMethod = 'relax-star-area';
reachOptions.relaxFactor = 0.7;
reachOptionsList{1} = reachOptions;
end

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

0 comments on commit 95fea61

Please sign in to comment.