Skip to content

Question about constraint modelling #546

Closed
@Christopher-Wang

Description

@Christopher-Wang

Sorry if this is an obvious question, however I was reviewing the code for the constraint algorithm and stumbled across this line. I was wondering about the logic behind checking the lowerbound for the upper constraint. Why is this not checking the upper bound instead?

norm(loc=y_mean, scale=y_std).cdf(self._ub[0]) if self._lb[0] != np.inf else np.array([1])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions