Dynamic Constrained Minimize equation in JSL Based on Equation Variables
I am using Constrained Minimize() in JSL and would like to build both the objective function and the constraint set dynamically, based on which variables appear in the objective equation.
In simple cases, I can hard-code everything, for example:
R_nom = 0.1;
L_nom = 0.5;
S_nom = 48.2;
B_nom = 0.05;
R_eq = 0.1;
L_eq = 0.5;
S_eq = 48.2;
B_eq = 0.05;
R_sd = :sd_R;
L_sd = :sd_L;
S_sd = :sd_S;
B_sd...