-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f1bf01
commit c1fe6cc
Showing
57 changed files
with
6,056 additions
and
189 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
function monotony = check_monotony(this) | ||
% BreachProblem.check_monotony might evolve eventually into more general sensitivity | ||
% analysis | ||
|
||
% check domains for non double - | ||
for id= 1:numel(this.domains) | ||
if ~isequal(this.domains(id).type, 'double') | ||
warning('check_monotony not tested with non double type, such as type %s of variable %s', this.domains(id), this.params{id}); | ||
end | ||
end | ||
|
||
Sys= CreateSystem({},this.params, this.x0); | ||
P = CreateParamSet(Sys, this.params, [this.lb, this.ub]); | ||
|
||
p = 4; | ||
r = 10; | ||
Pr = pRefine(P, p,r); | ||
Y = this.objective(Pr.pts); | ||
[~, ~, ~, ~, EE] = EEffects(Y, Pr.D, p); | ||
|
||
monotony = all(EE'>=0)-all(EE'<=0); % 1 if all positive, -1 if all negative, 0 otherwise | ||
|
||
|
||
|
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 |
---|---|---|
|
@@ -10,4 +10,3 @@ | |
'verbose', 1); | ||
this.solver_options = solver_opt; | ||
end | ||
|
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
Oops, something went wrong.