Replies: 5 comments 3 replies
-
Yes, you can save the state.
where alg is your RbfoptAlgorithm object. The state can be saved with
and there is a classmethod |
Beta Was this translation helpful? Give feedback.
-
OK. This is very useful !
I'm new to python, is there some simple example with these ideas already
implemented ?
Thanks ,
J
…On Sat, Oct 16, 2021 at 10:41 PM Giacomo Nannicini ***@***.***> wrote:
Yes, you can save the state.
You have to create your own script to create a RbfoptBlackBox and an
RbfoptAlgorithm. After that, you can execute one iteration at a time
"manually" by repeatedly running
alg.optimize(pause_after_iters=1)
where alg is your RbfoptAlgorithm object. The state can be saved with
alg.save_to_file(filename)
and there is a classmethod load_from_file(filename) if you want to
restore.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#39 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AINNYVWFIZ6YFEOQDFWEZDLUHIZVRANCNFSM5GEFAXRQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
I'm not aware of an example specifically for this, sorry. |
Beta Was this translation helpful? Give feedback.
-
When you resume, the algorithm object I am not sure why you are seeing that behavior. It is supposed to work. I encourage you to try to debug a little bit to see if the black box is called at all, and if you can't get it to work, then please open an issue, providing more information and possibly a way to replicate the problem so I can look into it. |
Beta Was this translation helpful? Give feedback.
-
Fixed !
It was my lack of python knowledge that caused then problem.
fyi: I've checked several black-box solvers outthere, yours seems to be the
best so far. Congrats and thanks for then good work !
…On Mon, Oct 25, 2021 at 12:22 PM Giacomo Nannicini ***@***.***> wrote:
When you resume, the algorithm object alg already stores the settings and
black-box function.
I am not sure why you are seeing that behavior. It is supposed to work. I
encourage you to try to debug a little bit to see if the black box is
called at all, and if you can't get it to work, then please open an issue,
providing more information and possibly a way to replicate the problem so I
can look into it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#39 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AINNYVV6I4G4U5KZOSRHPZ3UIV75RANCNFSM5GEFAXRQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I am optimizing a very complicated function whose evaluation requires calling multiple programs via a connection to the cloud, etc.
Sometimes, connection breaks, which forces me to start all over.
Does rbfopt allow me to save the state of solving an optimization problem and resume after a fail?
Do you know of any black box optimizer that allows me to do that?
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions