PsiVar(cell range, type, active, comment, model name, critical)

PsiVar adds one or more cells to the decision variables in the optimization model.

cell range – A single cell or a range of contiguous cells.

type – Set to 1 to add the cell or cell range as a "normal" variable, or 2 to add it as a "recourse" variable. If this argument is not passed, the cell(s) will be added as "normal" variable(s) by default.

active – Passing true selects the cell or cell range in the Task Pane Model tab for inclusion in the active model. Passing false unchecks the cell or cell range, removing the variable(s) from the active model. If omitted, true is passed by default.

comment – An optional comment, in quotes, which appears under "Comment" in the Variable Property Window. (To view the Property Window, highlight the variable or range of variables in the Task Pane Model tab; the Property Window appears at the bottom of the task pane.)

model name – A model or sheet name, in quotes, indicating to ASP what model or worksheet the variable(s) belong to.

critical – Set to True to display the variable(s) in bold, making it stand out visually — useful for quickly locating relevant variables when navigating a long list. Additionally, variables, constraints, or an objective designated as critical will be preselected when deploying a model in TEAMS (Deploy Model – Teams).