[eclipse-clp-users] API for c++ nolinear constraints

From: liu.yu.senior.china <liu.yu.senior.china_at_...6...>
Date: Sat, 22 Aug 2009 22:39:03 -0600
Dear Sir or Madam,

I am new to eclipse and clp and I have nonlinear constraints as follows:

only  x1..xn are vaiables and all the thers are constants.

c1/x1<=r1
c1/x1+c2/x2<=r2
c1/x1+c2/x2+c3/x3<=r3
c1?x1+c2/x2+c3/x3+..+cn/xn<=rn

I was wondering if I can use a single for loop to post all the constraints. Is there any eclipse data type for me to store expressions like c1/x1+c2/x2...?

Another constraint is like

exp(c1*x1)+exp(c2*x2)+...+exp(cn*xn)>=constant

How can I build the above constraints using c++ API?

Thank you in advance

2009-08-22 



liu.yu.senior.china 
Received on Sun Aug 23 2009 - 03:39:18 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 16 2024 - 09:13:20 CEST