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

GenAlg results saving #88

Open
all-the-way-down-turtles opened this issue Jul 4, 2023 · 1 comment
Open

GenAlg results saving #88

all-the-way-down-turtles opened this issue Jul 4, 2023 · 1 comment

Comments

@all-the-way-down-turtles

Hi,
I tried to follow the Optimization vignette, but the genSA procedure has been running for two weeks now, although I tried to set the control parameter control=list(maxit = 10) for testing. The genAlg procedure did work, but I am not able to save the results of the procedure. I atttached it to the nl object and tried to save it as suggested in the vignette.

setsim(nl, "simoutput") <- tibble::enframe(results)
saveRDS(nl, file.path(nl@experiment@outpath, "genAlg.rds"))

I am running the script from bash, since it kept crashing otherwise and I get this error:

Error in `tibble::enframe()`:
! The `x` argument to `enframe()` must be a vector, not rbga.
Backtrace:
    ▆
 1. └─tibble::enframe(results)
 2.   └─tibble:::abort_enframe_must_be_vector(x)
 3.     └─tibble:::tibble_abort(...)
 4.       └─rlang::abort(x, class, ..., call = call, parent = parent, use_cli_format = TRUE)

Can someone help me how to save the results?

@all-the-way-down-turtles
Copy link
Author

Hi,
I still haven't solved the genSA problem. The algorithm never comes to an end.

However, if someone also has problems adapting the code of the vignette to genAlg: to save the results of genAlg, the code should be without the enframe argument.

setsim(nl, "simoutput") <- results
saveRDS(nl, file.path(nl@experiment@outpath, "genAlg.rds"))

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