-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from verivital/master
merge recent changes for CAV submission
- Loading branch information
Showing
34 changed files
with
141 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
code/nnv/examples/Submission/CAV2020/ACC/config_parallelism.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
function [out] = config_parallelism(max_cores) | ||
% set number of cores to use in parallel computations | ||
% if system executed on has fewer, set lower | ||
physical_cores = feature('numcores'); % physical cores | ||
|
||
% use at most the number of logical cores available | ||
core_info = evalc('feature(''numcores'')'); % string with all core info, including logical cores | ||
core_info_logical = regexpi(core_info, '(?<num>\d+)\s+logical\s+cores', 'names'); | ||
available_cores = physical_cores; | ||
for i = 1 : length(core_info_logical) | ||
available_cores = max(available_cores, str2num(core_info_logical(i).num)); | ||
end | ||
|
||
numCores = min(available_cores, max_cores); % use at most max_cores cores if available, else fewer | ||
|
||
out = numCores; | ||
end |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+42 KB
...ion/CAV2020_Tool/ACC/linear_ACC_ncs_1.mat → ...bmission/CAV2020/ACC/linear_ACC_ncs_1.mat
Binary file not shown.
Binary file renamed
BIN
+121 KB
...ion/CAV2020_Tool/ACC/linear_ACC_ncs_6.mat → ...bmission/CAV2020/ACC/linear_ACC_ncs_6.mat
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+42.1 KB
code/nnv/examples/Submission/CAV2020/ACC/plot_linear_ACC_reachSets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
path_reproduce = pwd(); | ||
%path_nnv_root = ['..', filesep, '..', filesep, '..', filesep]; % in main folder | ||
|
||
path_nnv_root = ['..', filesep, '..', filesep, '..', filesep, '..', filesep]; % in acc subfolder | ||
|
||
cd(path_nnv_root); | ||
% run installation if not on codeocean / not already set up | ||
try | ||
is_codeocean(); | ||
catch | ||
install; | ||
end | ||
|
||
% check if CORA is set up, if submodules are not pulled recursively, it won't be | ||
% so ensure you've pulled with: | ||
% git clone --recursive https://github.com/verivital/nnv.git | ||
try | ||
coraroot(); | ||
catch | ||
'ERROR: CORA not detected, ensure submodules have been pulled, CORA is required for nonlinear plant analysis' | ||
return; | ||
end | ||
|
||
cd(path_reproduce); | ||
|
||
mkdir([path_results(), filesep, 'ACC']); | ||
|
||
% set number of cores based on system availability, up to a maximum of 16 | ||
config_parallelism(16); | ||
|
||
'Figure 4: Generating ACC with linear plant model reachable sets' | ||
plot_linear_ACC_reachSets; | ||
|
||
'Table 3 (linear plant): Generating ACC results for linear plant model' | ||
verify_linear_ACC; | ||
|
||
'Table 3 (nonlinear plant): Generating ACC results for nonlinear plant model' | ||
verify_nonlinear_ACC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file added
BIN
+27.1 KB
code/nnv/examples/Submission/CAV2020/ACC/verify_nonlinear_acc_cex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-2.24 MB
code/nnv/examples/Submission/CAV2020_Tool/ACC/verify_nonlinear_ACC.mat
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.