Skip to content

Commit 3e0fb8e

Browse files
committed
250803.080754.CST [skip ci] matlab: revise bobyqa_prec
1 parent 9f284b8 commit 3e0fb8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/profile_npt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144
run: |
145145
# The following modification is to show x, fx, funx, etc when the error InvalidFX occurs.
146146
cd matlab/interfaces/private
147-
sed -i "s|error(sprintf('%s:InvalidFx', invoker)|format long; x, fx, funx, bobyqa_prec, cobyla_prec\nerror(sprintf('%s:InvalidFx', invoker)|" postprima.m
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
148148
cat postprima.m
149149
150150
- name: Conduct the test

matlab/interfaces/private/postprima.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@
592592
% matrix-vector products.
593593
cobyla_prec = 1e-5;
594594
lincoa_prec = 1e-5;
595-
bobyqa_prec = 1e-9;
595+
bobyqa_prec = 1e-7;
596596

597597
% Check whether constrviolation is correct
598598
constrviolation = 0;

0 commit comments

Comments
 (0)