saezlab / CARNIVAL

CAusal Reasoning for Network Identification with integer VALue programming in R
https://saezlab.github.io/CARNIVAL/
57 stars 29 forks source link

fixing issue with negative constrains for lp solve #58

Closed gabora closed 3 years ago

gabora commented 3 years ago

lp solve allows only positive variables, but in some cases we would use negative variables too.

Solution: variables are shifted to the positive half-plane and then the optimal parameters are transformed back to the original space.