ROL running with the error #3643
Replies: 3 comments 5 replies
-
This simply looks like you are calling the constructor incorrectly. I have done some digging and I can't find any sort of documentation (or even the source code!) for ROL anywhere. @Ig-dolci do you have any experience with this? @danshapero I think I've heard you discuss ROL before, how did you know the right way to call the API? |
Beta Was this translation helpful? Give feedback.
-
Also, I think you want to run an FWI solver. We have this demo, which is in imminence to be added in Firedrake master. You can test it. |
Beta Was this translation helpful? Give feedback.
-
Adding more to the response on angus-g/pyrol#3:
Looking at: import ROL
paramsDict = {
"General": {"Secant": {"Type": "Limited-Memory BFGS", "Maximum Storage": 10}},
"Step": {
"Type": "Augmented Lagrangian",
"Augmented Lagrangian": {
"Subproblem Step Type": "Line Search",
"Subproblem Iteration Limit": 5,
},
"Line Search": {"Descent Method": {"Type": "Quasi-Newton Step"}},
},
"Status Test": {
"Gradient Tolerance": 1e-15,
"Iteration Limit": 100,
"Step Tolerance": 1e-15,
},
}
params = ROL.ParameterList(paramsDict, "Parameters")
algo = ROL.Algorithm("Line Search", params) You are passing a string and a ROL.ParameterList to For accessing general routines available in pyROL I suggest that you follow the demos available on fd, pyadjoint, or gadopt repositories where we use Lin-More trust region method. I not sure pyROL even gives access to |
Beta Was this translation helpful? Give feedback.
-
Hello. I am currently using Mac M1. And running the following code. It shows the error from the pybind11
ROL.Algorithm("Line Search", params)
Does anyone have a hint about solving it?
Her is my code:
And this is the error:
Many thanks
Beta Was this translation helpful? Give feedback.
All reactions