Skip to content

Commit 479efd7

Browse files
committed
250803.081219.CST [skip ci] revise profile_npt.yml
1 parent 3e0fb8e commit 479efd7

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/profile_npt.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,9 @@ jobs:
2828
matrix:
2929
os: [ubuntu-latest]
3030
matlab: [latest]
31-
#dim: [small, big, large, all]
32-
#npt: [n+2, n+6, 2*n, 2*n+2, 3*n, 4*n, n*sqrt(n), 0.25*n*n, 0.5*(n+1)*(n+2)]
33-
#solver: [newuoa, bobyqa, lincoa]
34-
dim: [small, all]
35-
npt: [4*n, 0.5*(n+1)*(n+2)]
36-
solver: [bobyqa]
31+
dim: [small, big, large, all]
32+
npt: [n+2, n+6, 2*n, 2*n+2, 3*n, 4*n, n*sqrt(n), 0.25*n*n, 0.5*(n+1)*(n+2)]
33+
solver: [newuoa, bobyqa, lincoa]
3734
competitor: [classical, default]
3835
exclude:
3936
- dim: large
@@ -144,7 +141,7 @@ jobs:
144141
run: |
145142
# The following modification is to show x, fx, funx, etc when the error InvalidFX occurs.
146143
cd matlab/interfaces/private
147-
sed -i "s|error(sprintf('%s:InvalidFx', invoker)|format long; x, fx, funx, fx-funx, bobyqa_prec, cobyla_prec\nerror(sprintf('%s:InvalidFx', invoker)|" postprima.m
144+
sed -i "s|error(sprintf('%s:InvalidFx', invoker)|format long; x, fx, funx, abs(fx-funx)/max(1, abs(fx)), bobyqa_prec, cobyla_prec\nerror(sprintf('%s:InvalidFx', invoker)|" postprima.m
148145
cat postprima.m
149146
150147
- name: Conduct the test

0 commit comments

Comments
 (0)