'Atomics Functions of CVXPY in Pyomo
I am trying to translate a problem modeled in CVXPY into Pyomo. Currently I have the doubt of how the atoms functions can be carried out in pyomo, in particular the cp.pos function I used it to declare a variable:
variable_3 = cp.pos(variable_2-variable_1)
So that the result is positive numbers of the difference
Is there a way to do this in pyomo?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
