AMPL from Java?

View: New views
2 Messages — Rating Filter:   Alert me  

AMPL from Java?

by Senjuti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am a new user of AMPL. I need to call a non linear optimization
function from my java code. Wonder how would that be possible using
AMPL?


Basically, I would need to pass the constraints as inputs to the optimization function from the java program.

Any help would be greatly appreciated.

my objective function is similar to this:

Maximize z= 0.5 a + 0.5 b + c

s.t,

c = 1- abs(a-b)
0 <= a <= c1
0<=b <= c2
abs(a-b) <= c3

thanks in advance

--Senjuti

[AMPL 2581] Re: AMPL from Java?

by Haluk Yapicioglu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

if you're using cplex, you don't need to use AMPL. You can call CPLEX libraries directly from Java...

On Fri, Jun 5, 2009 at 10:23 AM, Senjuti <senjutib@...> wrote:


Hi,

I am a new user of AMPL. I need to call a non linear optimization
function from my java code. Wonder how would that be possible using
AMPL?


Basically, I would need to pass the constraints as inputs to the
optimization function from the java program.

Any help would be greatly appreciated.

my objective function is similar to this:

Maximize z= 0.5 a + 0.5 b + c

s.t,

c = 1- abs(a-b)
0 <= a <= c1
0<=b <= c2
abs(a-b) <= c3

thanks in advance

--Senjuti
--
View this message in context: http://www.nabble.com/AMPL-from-Java--tp23890318p23890318.html
Sent from the AMPL mailing list archive at Nabble.com.






--
Haluk Yapicioglu

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to ampl@...
To unsubscribe from this group, send email to ampl+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/ampl?hl=en
-~----------~----~----~----~------~----~------~--~---