-
Notifications
You must be signed in to change notification settings - Fork 139
Closed
Labels
awaiting responseThis expects a response from maintainer or contributor depending on who requested in last comment.This expects a response from maintainer or contributor depending on who requested in last comment.bugSomething isn't workingSomething isn't working
Description
Describe the bug
Forming a quadratic expression starting with a unitary variable term errors in the python API.
Steps/Code to reproduce bug
from cuopt.linear_programming.problem import Problem, CONTINUOUS, MINIMIZE
problem = Problem("qp")
x = problem.addVariable(lb=0.0, vtype=CONTINUOUS, name="x")
problem.setObjective(x + x*x, sense=MINIMIZE) # errorsproduces the following output:
Cannot add type QuadraticExpression to variableExpected behavior
I expected the problem to be formed as expected
Environment details (please complete the following information):
- Environment location: DGX Spark
- Method of cuOpt install: via
pipin a python virtual environment, using cuOpt v26.02
Additional context
Probably linked to #926 and how unitary variable terms are handled in conjunction with linear/quadratic expressions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
awaiting responseThis expects a response from maintainer or contributor depending on who requested in last comment.This expects a response from maintainer or contributor depending on who requested in last comment.bugSomething isn't workingSomething isn't working