<div dir="ltr"><div>Hi<br></div>Thanks, it worked perfectly!<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Apurv Shukla <br><div>Third Year Undergraduate Student</div><div>Department of Mechanical Engineering </div><div>IIT Kharagpur</div></div></div></div>
<br><div class="gmail_quote">On Tue, Jun 23, 2015 at 4:11 PM, Stefan Vigerske <span dir="ltr"><<a href="mailto:stefan@math.hu-berlin.de" target="_blank">stefan@math.hu-berlin.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
there is the SCIP_EXPR_REALPOWER operand that you can use.<br>
Something like<br>
SCIPexprCreate(blkmem, &expr, SCIP_EXPR_REALPOWER, exprquot, n)<br>
where exprquot is the expression for f(x)/g(x) and the 2nd operand is the exponent, which needs to be of type double.<br>
<br>
Stefan<div><div class="h5"><br>
<br>
On 06/23/2015 03:57 PM, Apurv Shukla wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hello<br>
I have a non-linear function of the form (f(x)/g(x))^n where f(x) is a<br>
quadratic function, g(x) is a linear function and n is fractional (and<br>
rational). This function is a nonlinear constraint hence I need to express<br>
it as an expression tree. Uptil now I have been able to represent f(x) and<br>
g(x) as polynomials and the fraction f(x)/g(x). However I cannot find a way<br>
to raise this expression i.e. f(x)/g(x) to a fractional power. Is their any<br>
way to do that? If not, is there a work around to express this as a<br>
constraint?<br>
<br>
<br>
<br>
<br>
Apurv Shukla<br>
Third Year Undergraduate Student<br>
Department of Mechanical Engineering<br>
IIT Kharagpur<br>
<br>
<br>
<br></div></div>
_______________________________________________<br>
Scip mailing list<br>
<a href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a><br>
<a href="http://listserv.zib.de/mailman/listinfo/scip" rel="noreferrer" target="_blank">http://listserv.zib.de/mailman/listinfo/scip</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>