Skip to content

Commit

Permalink
-refatoring the ClosedLoopIdentifier, extracting the code to esimate …
Browse files Browse the repository at this point in the history
…MISO-systems, to look into why these unit tests appear to perform slightly worse than before.
  • Loading branch information
Steinar Elgsæter committed Dec 20, 2024
1 parent e99cffb commit 9887c8c
Show file tree
Hide file tree
Showing 5 changed files with 246 additions and 180 deletions.
9 changes: 8 additions & 1 deletion Dynamic/Identification/ClosedLoopGainGlobalSearchResults.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,20 @@ Tuple<double,int> CalcStrengthOfObjectiveMinimum(double[] values)

string Direction(double[] v_in, int minIdx)
{

if (minIdx == 0)
return "";
if (minIdx >= v_in.Length)
return "";
double v_min = (new Vec()).Min(v_in);
double v_max = (new Vec()).Max(v_in);
double v_range = v_max - v_min;
double v_range = v_max - v_min;
if (minIdx == 0 )
return "@min";
if (minIdx <= v_in.Length)
return "@max";


if (v_in[minIdx + 1] == v_in[minIdx - 1])
{
return "><";
Expand Down
Loading

0 comments on commit 9887c8c

Please sign in to comment.