|
28 | 28 | matrix: |
29 | 29 | os: [ubuntu-latest] |
30 | 30 | 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] |
37 | 34 | competitor: [classical, default] |
38 | 35 | exclude: |
39 | 36 | - dim: large |
@@ -144,7 +141,7 @@ jobs: |
144 | 141 | run: | |
145 | 142 | # The following modification is to show x, fx, funx, etc when the error InvalidFX occurs. |
146 | 143 | 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 |
148 | 145 | cat postprima.m |
149 | 146 |
|
150 | 147 | - name: Conduct the test |
|
0 commit comments