You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear all
In the Linux, the problem created with 100% CPU usage and 8 cores. When the job finished (after 26 h) I received two warnings:
Warning messages:
1: : ... may be used in an incorrect context: ‘.fun(piece, ...)’
2: : ... may be used in an incorrect context: ‘.fun(piece, ...)’
Now I'm trying to solve the created problem. But Rsymphony is using only 1 core. Why in the problem creating step it used 8 cores but in the solving step only one?
The text was updated successfully, but these errors were encountered:
The set_number_of_threads is used to globally control the number of threads used for processing GIS data prior to solving reserve selection problems. If multiple cores are specified for pre-processing data (set via the set_number_of_threads function), then R will create the warnings you're seeing. You can safely disregard these warnings.
To set the number of threads used for solving a problem, check out the add_*_solver functions (e.g. add_gurobi_solver). Unfortunately, Rsymphony package does not allow users to control the number of threads to use for solving problem, so the add_rsymphony_solver function does not have a threads argument. It seems that on certain systems the Rsymphony and lpsymphony packages will only use one thread for solving problems, and on other systems these packages will automatically use all of the threads for solving problems - but there is not yet an mechanism to control this within R.
Dear all
In the Linux, the problem created with 100% CPU usage and 8 cores. When the job finished (after 26 h) I received two warnings:
Warning messages:
1: : ... may be used in an incorrect context: ‘.fun(piece, ...)’
2: : ... may be used in an incorrect context: ‘.fun(piece, ...)’
Now I'm trying to solve the created problem. But Rsymphony is using only 1 core. Why in the problem creating step it used 8 cores but in the solving step only one?
The text was updated successfully, but these errors were encountered: