ecboghiu / inflation

Implementations of the Inflation Technique for Causal Inference.
GNU General Public License v3.0
22 stars 3 forks source link

Separate support problems from general problems #101

Open apozas opened 1 year ago

apozas commented 1 year ago

This PR separates the codes for general optimization problems and supports problems. This is done by creating two new classes, one BaseSDP that contains the bare minimum to create an SDP problem (and which is now a parent of InflationSDP), and SupportsSDP for supports problems. All tests pass, and documentation has been updated accordingly.

One (or two) pair of new eyes would be useful in case you want to test before merging. I am happy to take care of adapting the code so the merge can be performed.