PsiCon(LHS, relation, RHS, active, chance type, chance measure, comment, model name, critical)
PsiCon adds one or more constraints to the optimization model.
LHS – A cell or contiguous range of cells containing the left-hand side(s) of the constraint(s).
relation – The relation of the constraint, passed in quotes: "<=" (less than or equal to), "=" (equal to), ">=" (greater than or equal to), "int" (integer), "bin" (binary), "dif" (alldifferent), "soc" (cone), "src" (rotated cone), or "sem" (semicontinuous).
RHS – A cell or contiguous range of cells containing the right-hand side(s) of the constraint(s).
active – Passing true selects the constraint in the Task Pane Model tab for inclusion in the active model. Passing false unchecks the constraint, removing it from the active model. If omitted, true is passed by default.
chance type – An integer value indicating the chance type: 0 (normal), 2 (VaR), 3 (CVaR), or 4 (USet).
chance measure – A value from 0 to 1 that specifies the confidence level (percentile) used when evaluating the constraint under the selected chance type. For example, setting chance type to VaR with a chance measure of 0.95 requires that the 95th percentile of the LHS, taken over all realizations of the uncertainty, satisfies the given relation — e.g., a constraint requiring the 95th percentile to be non-negative is a way of expressing "meet demand with 95% probability." The same value serves as the confidence level when chance type is CVaR. When chance type is USet (uncertainty set), this argument instead represents the set size, controlling the size of the uncertainty set used in the robust optimization formulation. This argument has no effect when chance type is 0 (normal).
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 constraint(s) belong to.
critical – Set to True to display the constraint in bold, making it stand out visually — useful for quickly locating relevant constraints 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).
