IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
2 replies Latest Post - ‏2013-01-15T21:53:47Z by J2C0_Mark_Bloomfield
5 Posts

Pinned topic feasOpt in the MATLAB API

‏2013-01-12T18:23:47Z |
In the CPLEX MATLAB API it only seems possible to pass linear constraints to the feasOpt call. Is there any way of to pass quadratic constraints too? I think this capability is available in other APIs, but am keen to know whether this can be done in MATLAB. Thanks!
Updated on 2013-01-15T21:53:47Z at 2013-01-15T21:53:47Z by J2C0_Mark_Bloomfield
  • SystemAdmin
    7929 Posts

    Re: feasOpt in the MATLAB API

    ‏2013-01-15T12:01:08Z  in response to J2C0_Mark_Bloomfield
    You are right. In the matlab API feasopt() can only be invoked for linear problems. Quadratic constraints are not supported here. I have filed a user wish that asks for this feature.
    To get feasopt for quadratic constraints you would have to manually create the model that feasopt would otherwise create: Add additional variables to the quadratic constraints that make the constraints always feasible and penalize the variables if they are non-zero. Then minimize the penalty.