jump-dev / Convex.jl

A Julia package for disciplined convex programming
https://jump.dev/Convex.jl/stable/
Other
557 stars 119 forks source link

Simplify constraint creation of MOI wrapper #668

Closed blegat closed 1 month ago

blegat commented 1 month ago

Part of the goal of redesigning the constraints on top of MOI sets is to render the conversion from MOI constraints trivial. In this PR, the MOI wrapper is still only supporting LessThan, GreaterThan and EqualTo but we can after easily target other sets such as Nonnegatives

I guess we have two options

  1. Make Convex.Constraint work with MOI.AbstractScalarSet such as LessThan
  2. Make Convex.Optimizer not support ScalarNonlinearFunction-in-LessThan but support VectorNonlinearFunction-in-Nonpositives so that the VectorizeBridge would deliver vector sets only.

I kind of prefer the second option

Closes https://github.com/jump-dev/Convex.jl/pull/669