Skip to content

Commit

Permalink
remove more_alt
Browse files Browse the repository at this point in the history
  • Loading branch information
luk036 committed May 15, 2024
1 parent 36d9035 commit 416b28b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
jobs:
build:
name: Build and publish documentation
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

Expand All @@ -22,7 +22,7 @@ jobs:

- name: Install dependencies
run: |
brew install doxygen
sudo apt-get install doxygen
pip3 install jinja2 Pygments
- name: Build
Expand All @@ -34,4 +34,4 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/doxygen/html
publish_dir: ./build/doxygen/html
10 changes: 8 additions & 2 deletions .github/workflows/style.bak
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@ jobs:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}

- name: Before Install
run: |
sudo apt-get install g++-10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 90

- name: Install format dependencies
run: |
pip3 install clang-format==18.1.2 cmake_format==0.6.13 pyyaml
sudo apt-get install clang-format
pip3 install cmake_format==0.6.13 pyyaml

- name: configure
run: cmake -S. -Bbuild
run: cmake -Stest -Bbuild

- name: check style
run: cmake --build build --target check-format
1 change: 0 additions & 1 deletion include/ellalgo/oracles/lowpass_oracle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class LowpassOracle {

double _fmax = -1e100;
size_t _kmax = 0;
bool more_alt{true};

Mat A;
double Lpsq;
Expand Down
4 changes: 2 additions & 2 deletions source/lowpass_oracle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ LowpassOracle::LowpassOracle(size_t N, double Lpsq, double Upsq, double wpass, d
auto LowpassOracle::assess_feas(const Vec &x, const double &Spsq) -> ParallelCut * {
static ParallelCut cut = std::make_pair(Vec{0.0}, Vec{0.0});

this->more_alt = true;
// this->more_alt = true;
auto n = x.size();

auto matrix_vector = [this, &x](size_t k) {
Expand Down Expand Up @@ -148,7 +148,7 @@ auto LowpassOracle::assess_feas(const Vec &x, const double &Spsq) -> ParallelCut
}
}

this->more_alt = false;
// this->more_alt = false;

// 1.0 nonnegative-real constraint
// case 1,
Expand Down

0 comments on commit 416b28b

Please sign in to comment.