Replace Operation in Problem Statement

Replace operation specifies values of parameters in problem statement.

Syntax

 

{#name_of_parameter1;...;#name_of_parameterN}={value1;...;valueN}

[problem_statement_string]

 

Description

 

Set of strings {#name_of_parameter1;...;#name_of_parameterN} in the initial problem_statement_string are replaced by corresponding strings {value1;...;valueN}. First, all strings #name_of_parameter1 are replaced by string value1 in problem_statement_string. Then, all strings #name_of_parameter2 are replaced by string value2 in problem_statement_string. And so on.

 

Replace operation is applied to the end of problem statement or to the end of cycle end for.

 

Note

 

You may specify a set of Replace operations for one problem statement:

{#name_of_parameter11;...;#name_of_parameterN1}={value11;...;valueN1}

...

{#name_of_parameter1M;...;#name_of_parameterNM}={value12;...;valueNM}

[problem_statement_string]

 

Note

 

Strings #name_of_parameter must be complicated and do not match with parts of words in problem statement that are not changed.

 

           Examples

Consider the following problem statement:

 

maximize

 linear(matrix_r)

Constraint: <= 0.02

 var_risk(0.95, matrix_B)

Constraint: == 1

 linear(matrix_C)

Box: >= point_lb, <= point_ub

 

Problem may be reformulated using Replace Operation:

 

{#constr1;#constr2;#param}={0.02;1;0.95}

maximize

 linear(matrix_r)

Constraint: <= #constr1

 var_risk(#param, matrix_B)

Constraint: == #constr2

 linear(matrix_C)

Box: >= point_lb, <= point_ub

 

See also

Cycle Replace Operation in Problem Statement