Skip to content

Commit

Permalink
wfg: Fix unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Feb 14, 2024
1 parent 88ef012 commit 6934e5a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- master
jobs:
osx:
runs-on: macos-latest
runs-on: macos-14-large
steps:
- uses: actions/checkout@v4
- name: Build
Expand Down
2 changes: 0 additions & 2 deletions src/problems/wfg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -916,10 +916,8 @@ vector_double wfg::wfg8_fitness(const vector_double &x) const
for (decltype(m_dim_k) i = m_dim_k; i < m_dim_dvs; ++i) {
vector_double first_input(i);
vector_double weights(i, 1.0);
decltype(m_dim_obj) index = 0u;
for (decltype(i) j = 0u; j < i; ++j) {
first_input[j] = y[j];
++index;
}
t_1[i] = b_param(x_norm[i], r_sum(first_input, weights), 0.98 / 49.98, 0.02, 50);
y[i] = t_1[i];
Expand Down

0 comments on commit 6934e5a

Please sign in to comment.