[Scip] Problem expressing a nonlinear constraint as an Expression Tree

Stefan Vigerske stefan at math.hu-berlin.de
Tue Jun 23 16:11:21 CEST 2015


Hi,

there is the SCIP_EXPR_REALPOWER operand that you can use.
Something like
SCIPexprCreate(blkmem, &expr, SCIP_EXPR_REALPOWER, exprquot, n)
where exprquot is the expression for f(x)/g(x) and the 2nd operand is 
the exponent, which needs to be of type double.

Stefan

On 06/23/2015 03:57 PM, Apurv Shukla wrote:
> Hello
> I have a non-linear function of the form (f(x)/g(x))^n where f(x) is a
> quadratic function, g(x) is a linear function and n is fractional (and
> rational). This function is a nonlinear constraint hence I need to express
> it as an expression tree. Uptil now I have been able to represent f(x) and
> g(x) as polynomials and the fraction f(x)/g(x). However I cannot find a way
> to raise this expression i.e. f(x)/g(x) to a fractional power. Is their any
> way to do that? If not, is there a work around to express this as a
> constraint?
>
>
>
>
> Apurv Shukla
> Third Year Undergraduate Student
> Department of Mechanical Engineering
> IIT Kharagpur
>
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
>



More information about the Scip mailing list