Summary
The replicateVariables.m function currently requires manual boolean flags (issdpvar, isbinvar, isintvar) to specify the type of YALMIP variable being replicated. This approach can lead to errors if the wrong flag is provided. Additionally, its ability to differentiate between binvar and intvar could be more robust.
This issue proposes refactoring the function to automatically detect the variable type from the input all_orig_vars, thus removing the need for these manual flags.
Summary
The
replicateVariables.mfunction currently requires manual boolean flags (issdpvar,isbinvar,isintvar) to specify the type of YALMIP variable being replicated. This approach can lead to errors if the wrong flag is provided. Additionally, its ability to differentiate betweenbinvarandintvarcould be more robust.This issue proposes refactoring the function to automatically detect the variable type from the input
all_orig_vars, thus removing the need for these manual flags.