Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Line search cannot locate an adequate point after MAXLS function and gradient evaluations. #29

Open
ChenLiumeng opened this issue Dec 15, 2024 · 0 comments

Comments

@ChenLiumeng
Copy link

ChenLiumeng commented Dec 15, 2024

When I apply my data to the synthetic control method, the following error occurs:

**At iterate 9 f= 1.88176D+02 |proj g|= 9.95029D-01
ys=-1.176E-04 -gs= 9.593E-02 BFGS update SKIPPED

At iterate 12 f= 1.87726D+02 |proj g|= 9.93929D-01
ys=-4.743E-08 -gs= 2.418E-03 BFGS update SKIPPED

Bad direction in the line search;
refresh the lbfgs memory and restart the iteration.

Bad direction in the line search;
refresh the lbfgs memory and restart the iteration.

Line search cannot locate an adequate point after MAXLS
function and gradient evaluations.
Previous x, f and g restored.
Possible causes: 1 error in function or gradient evaluation;
2 rounding error dominate computation.**

I searched for the cause of the occurrence showing that it could be due to an unreasonable number of iterations, so I made a change to n_optim= in SyntheticControlMethods/main.py as below, but found that the problem persisted.
0471DB17-2B48-4028-BC1E-CF6ACD7603B2
How should I solve this please, thank you very much!😊
This is the version of each package for the environment I'm using

tests.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant