proposed revision of conic interface #38
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As discussed in #36, here's a proposed revision to the conic interface which allows the user to specify conic restrictions on both variables and affine functions of variables. Solver interfaces will be responsible for massaging the problem into the format required by each solver, but this interface makes it easier on the modeling side by avoiding the need for slacks and identity transformations.
The primal is:
and the dual is:
The choice of signs for the affine constraints is arbitrary but results in a dual that's reasonably aesthetically pleasing to me (negative signs in the objective seem ugly).
Here's a preview of the docs: http://mathprogbasejl.readthedocs.org/en/conic2/conic.html
@madeleineudell @karanveerm @IainNZ @joehuchette