Solution settings class
Solution settings class
Definition for the SolutionSettings
class.
user_settings
stores user uploaded .yaml file used to repopulate solution
settings from a previous optimization run. The user uploaded .yaml file
must completely match the current project.
The argument to value
should be a list
with the following elements:
character
identifier for theme, weight, include, or exclude.
character
name of parameter.
Available options are: "status"
, "factor"
, "value"
, or "goal"
.
character
indicating the type of setting.
Available options are: "theme"
, "weight"
, "include"
, "exclude"
"parameter"
.
The argument to value
should be a list
with the following elements:
character
identifier for theme, weight, include, exclude or parameter.
character
name of parameter.
Available options are: "status"
, "factor"
, "value"
, "goal"
, or "fileinput"
numeric
, logical
, or character
value for new setting.
character
indicating the type of setting.
Available options are: "theme"
, "weight"
, "include"
, "exclude"
,
"parameter"
.
The argument to value
should be a list
of Theme, Weight,
Include, Exclude and Parameter objects.
theme_ids
character
vector of identifiers for the themes.
weight_ids
character
vector of identifiers for the weights.
include_ids
character
vector of identifiers for the includes.
exclude_ids
character
vector of identifiers for the excludes.
parameter_ids
character
vector of identifiers for the
parameters.
themes
list
of Theme objects.
weights
list
of Weight objects.
includes
list
of Include objects.
excludes
list
of Exclude objects.
parameters
list
of Parameter objects.
user_settings
list
of Theme, Weight, Include, Exclude
and Parameter objects.
new()
Create a SolutionSettings
object.
SolutionSettings$new(themes, weights, includes, excludes, parameters)
A new SolutionSettings
object.
new()
Create a SolutionSettings
object.
SolutionSettings$new(themes, weights, includes, excludes, parameters)
A new SolutionSettings
object.
print()
Print the object.
SolutionSettings$print(...)
...
not used.
print()
Print the object.
SolutionSettings$print(...)
...
not used.
repr()
Generate a character
summarizing the representation of the object.
SolutionSettings$repr()
character
value.
repr()
Generate a character
summarizing the representation of the object.
SolutionSettings$repr()
character
value.
get_theme()
Get a theme.
SolutionSettings$get_theme(value)
value
character
theme identifier.
Theme object.
get_theme()
Get a theme.
SolutionSettings$get_theme(value)
value
character
theme identifier.
Theme object.
get_weight()
Get a weight.
SolutionSettings$get_weight(value)
value
character
weight identifier.
Weight object.
get_weight()
Get a weight.
SolutionSettings$get_weight(value)
value
character
weight identifier.
Weight object.
get_include()
Get an include.
SolutionSettings$get_include(value)
value
character
include identifier.
Include object.
get_include()
Get an include.
SolutionSettings$get_include(value)
value
character
include identifier.
Include object.
get_exclude()
Get an exclude.
SolutionSettings$get_exclude(value)
value
character
exclude identifier.
Exclude object.
get_exclude()
Get an exclude.
SolutionSettings$get_exclude(value)
value
character
exclude identifier.
Exclude object.
get_parameter()
Get an parameter.
SolutionSettings$get_parameter(value)
value
character
weight identifier.
Parameter object.
get_parameter()
Get an parameter.
SolutionSettings$get_parameter(value)
value
character
weight identifier.
Parameter object.
get_setting()
Get a setting for a weight, theme, include, exclude, or parameter.
SolutionSettings$get_setting(value)
value
list
with new parameter information (see Details section)
get_setting()
Get a setting for a weight, theme, include, exclude, or parameter.
SolutionSettings$get_setting(value)
value
list
with new parameter information (see Details section)
set_setting()
Set a setting for theme, weight, include, exclude and parameters.
SolutionSettings$set_setting(value)
value
list
with new setting information (see Details section)
set_setting()
Set a setting for theme, weight, include, exclude and parameters.
SolutionSettings$set_setting(value)
value
list
with new setting information (see Details section)
get_feature_names()
get character vector of all feature names from a list of themes.
SolutionSettings$get_feature_names(x)
x
list
of Theme objects.
vector
of feature names.
get_feature_names()
get character vector of all feature names from a list of themes.
SolutionSettings$get_feature_names(x)
x
list
of Theme objects.
vector
of feature names.
update_ss()
update settings for theme, weight, include, exclude and parameters from user uploaded configuration file.
SolutionSettings$update_ss(value)
value
list
with new setting information (see Details section)
update_ss()
update settings for theme, weight, include, exclude and parameters from user uploaded configuration file.
SolutionSettings$update_ss(value)
value
list
with new setting information (see Details section)
get_widget_data()
Get data for displaying the theme in a solutionSettings()
widget.
SolutionSettings$get_widget_data()
list
with widget data.
get_widget_data()
Get data for displaying the theme in a solutionSettings()
widget.
SolutionSettings$get_widget_data()
list
with widget data.
get_theme_settings()
Get theme settings for generating a prioritization.
SolutionSettings$get_theme_settings()
tibble::tibble()
with data.
get_theme_settings()
Get theme settings for generating a prioritization.
SolutionSettings$get_theme_settings()
tibble::tibble()
with data.
get_weight_settings()
Get weight settings for generating a prioritization.
SolutionSettings$get_weight_settings()
tibble::tibble()
with data.
get_weight_settings()
Get weight settings for generating a prioritization.
SolutionSettings$get_weight_settings()
tibble::tibble()
with data.
get_include_settings()
Get include settings for generating a prioritization.
SolutionSettings$get_include_settings()
tibble::tibble()
with data.
get_include_settings()
Get include settings for generating a prioritization.
SolutionSettings$get_include_settings()
tibble::tibble()
with data.
get_exclude_settings()
Get exclude settings for generating a prioritization.
SolutionSettings$get_exclude_settings()
tibble::tibble()
with data.
get_exclude_settings()
Get exclude settings for generating a prioritization.
SolutionSettings$get_exclude_settings()
tibble::tibble()
with data.
get_parameter_settings()
Get parameter settings for generating a prioritization.
SolutionSettings$get_parameter_settings()
tibble::tibble()
with data.
get_parameter_settings()
Get parameter settings for generating a prioritization.
SolutionSettings$get_parameter_settings()
tibble::tibble()
with data.
get_theme_data()
Get theme matrix data.
SolutionSettings$get_theme_data()
Matrix::sparseMatrix()
with data.
get_theme_data()
Get theme matrix data.
SolutionSettings$get_theme_data()
Matrix::sparseMatrix()
with data.
get_weight_data()
Get weight matrix data.
SolutionSettings$get_weight_data()
Matrix::sparseMatrix()
with data.
get_weight_data()
Get weight matrix data.
SolutionSettings$get_weight_data()
Matrix::sparseMatrix()
with data.
get_include_data()
Get includes matrix data.
SolutionSettings$get_include_data()
Matrix::sparseMatrix()
with data.
get_include_data()
Get includes matrix data.
SolutionSettings$get_include_data()
Matrix::sparseMatrix()
with data.
get_exclude_data()
Get exclude matrix data.
SolutionSettings$get_exclude_data()
Matrix::sparseMatrix()
with data.
get_exclude_data()
Get exclude matrix data.
SolutionSettings$get_exclude_data()
Matrix::sparseMatrix()
with data.
get_overlap()
Get list of include and exclude names that overlap.
SolutionSettings$get_overlap()
list
with exclude and include names.
get_overlap()
Get list of include and exclude names that overlap.
SolutionSettings$get_overlap()
list
with exclude and include names.
set_overlap()
Get list of include and exclude names that overlap.
SolutionSettings$set_overlap()
list
with exclude and include names.
set_overlap()
Get list of include and exclude names that overlap.
SolutionSettings$set_overlap()
list
with exclude and include names.
update_current_held()
Update the current amount held for each themes and weights automatically based on the include and exclude statuses.
SolutionSettings$update_current_held(
theme_data = self$get_theme_data(),
weight_data = self$get_weight_data(),
include_data = self$get_include_data(),
exclude_data = self$get_exclude_data()
)
theme_data
[Matrix::sparseMatrix()] with theme data. Defaults to
self$get_theme_data()`.
weight_data
[Matrix::sparseMatrix()] with weight data. Defaults to
self$get_weight_data()`.
include_data
[Matrix::sparseMatrix()] with include data. Defaults to
self$get_include_data()`.
exclude_data
[Matrix::sparseMatrix()] with exclude data. Defaults to
self$get_exclude_data()`.
update_current_held()
Update the current amount held for each themes and weights automatically based on the include and exclude statuses.
SolutionSettings$update_current_held(
theme_data = self$get_theme_data(),
weight_data = self$get_weight_data(),
include_data = self$get_include_data(),
exclude_data = self$get_exclude_data()
)
theme_data
[Matrix::sparseMatrix()] with theme data. Defaults to
self$get_theme_data()`.
weight_data
[Matrix::sparseMatrix()] with weight data. Defaults to
self$get_weight_data()`.
include_data
[Matrix::sparseMatrix()] with include data. Defaults to
self$get_include_data()`.
exclude_data
[Matrix::sparseMatrix()] with exclude data. Defaults to
self$get_exclude_data()`.
clone()
The objects of this class are cloneable with this method.
SolutionSettings$clone(deep = FALSE)
deep
Whether to make a deep clone.
clone()
The objects of this class are cloneable with this method.
SolutionSettings$clone(deep = FALSE)
deep
Whether to make a deep clone.