Skip to content

Missing composition rules for vectorized DQCP #2793

Open
@RashwanA

Description

@RashwanA

Describe the bug
It appears that certain functions of vectorized DQCP expressions are not correctly identified as DQCP, even though their scalar counterparts are. Is this intended behaviour?

To Reproduce

import cvxpy as cv

a = cv.Variable(2)
b = cv.Variable(2, pos=True)
ratio = a / b
div = ratio[0]
div_sc = a[0] / b[0]
print(div.is_dqcp()) # False
print(div_sc.is_dqcp()) # True

log = cv.log(ratio)[0]
log_sc = cv.log(div_sc)
print(log.is_dqcp()) # False
print(log_sc.is_dqcp()) # True

Version

  • CVXPY Version: 1.6.5

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