Description Usage Arguments Value Author(s) References Examples
View source: R/rpsg_restore_ps.R
Replace parameters with their values in PSG Problem Statement
1 | rpsg_restore_ps(input)
|
input |
list with data for optimization problem. List members:
|
output list with results:
output$problem_statement
character with PSG Problem Statement with values of all input parameters;
output$...
all inputs without parameters;
Stan Uryasev [aut, cre, cph], Grigoriy Zrazhevsky [aut], Viktor Kuzmenko [aut], Alex Zrazhevsky [aut]
Maintainer: Stan Uryasev <stan.uryasev@aorda.com>
American Optimal Decisions
Portfolio Safeguard Help
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #Define PSG Problem Statement:
problem_list<-list()
problem_list$problem_statement <- sprintf(
"minimize
cvar_risk(parameter_alpha,matrix_scenarios)
Constraint: >= bound_avg
avg_g(matrix_scenarios)
Constraint: == bound_lin
linear(matrix_budget)
Box: >= point_lowerbounds
Solver: solver_van")
#Define parameters:
problem_list$parameter_alpha <-0.95
problem_list$bound_avg <-4.5
problem_list$bound_lin <-1
problem_list$solver_van <-"VAN"
#Convert PSG Problem Statement:
problem_list_new <- rpsg_restore_ps(problem_list)
cat(problem_list_new$problem_statement)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.