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

Apurv Shukla apurv3894 at gmail.com
Tue Jun 23 20:15:55 CEST 2015


Hi
Thanks, it worked perfectly!

Apurv Shukla
Third Year Undergraduate Student
Department of Mechanical Engineering
IIT Kharagpur

On Tue, Jun 23, 2015 at 4:11 PM, Stefan Vigerske <stefan at math.hu-berlin.de>
wrote:

> 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20150623/e95d1e2f/attachment.html>


More information about the Scip mailing list