
|
[AMPL 2786] AW: [AMPL 2783] Re: combining AMPL and CPLEX

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Hello,
could this be a problem with different cplex and cplex.c versions ( 'tunewrite' seems to be new in CPLX ?10.0? )? I need to use 64Bit and I only have CPLEX 9.1.3 in 64Bit. But cplex.c seems to be for CPLEX 11.0.
Best, L. J.
----- Weitergeleitete Mail ---- Von: Thomas Granz <amplbox@...> An: ampl@... Gesendet: Montag, den 31. August 2009, 16:31:46 Uhr Betreff: [AMPL 2785] AW: [AMPL 2783] Re: combining AMPL and CPLEX
Thanks Paul,
this brought me one step further. But when I try to compile the driver, I get the following error:
$ make cc -s -o cplex cplex.o ../funcadd0.o ../amplsolver.a libcplex.a -lm -lpthread cplex.o(.text+0x81b4): In function `amplout': : undefined reference to `tunewrite' collect2: ld returned 1 exit status make: *** [cplex] Error 1
I have already compiled 'amplsolver.a' in 'ampl/solvers'. Does anyone has an idea what the problem is? Thank you, L. J.
Von: Paul <rubin@...> An: AMPL Modeling Language <ampl@...> Gesendet: Samstag, den 29. August 2009, 00:58:25 Uhr Betreff: [AMPL 2783] Re: combining AMPL and CPLEX
On Aug 28, 10:48 am, Thomas Granz < ampl...@...> wrote: > > I have AMPL and I have a CPLEX 10.1. But my version of CPLEX is not especially for AMPL. Is there a way to make them work together or do I need a special CPLEX(for AMPL) version? > Now, when I use "option solver cplex; solve;" then instead of solving the given problem a CPLEX comando line is opend. The command 'cplex' tells CPLEX to run its interactive
optimizer, which is not what you want. You need a driver program that will run CPLEX's optimization engine
only (not the interactive GUI). Versions of AMPL bought from ILOG should come with an executable named 'cplexamp'. If you have that, just use "option solver cplexamp" and you should be in business. If you don't have it, there's C source code for a drive at the AMPL web site ( http://www.ampl.com/solvers.html#Table). /Paul
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
|

|
[AMPL 2789] Re: AW: [AMPL 2783] Re: combining AMPL and CPLEX

Some parts of this message have been removed.
Learn more about Nabble's security policy.
This does seem to be a version problem. You need to have a '#define CPX_VERSION 913' in the cplex.c code that you are compiling, so that functions for features that only appeared in later versions are skipped. Normally the '#include "cplex.h"' at the beginning of cplex.c takes care of this. So check that the cplex.h that you're including is defining the proper CPX_VERSION, and that CPX_VERSION is not being redefined as something else. If you don't find anything wrong then let me know and I'll check further to see if perhaps there is a glitch in cplex.c involving versions earlier than 10. (9.1.3 is a really old, unsupported version, so the problem may not come up too often.) Bob Fourer 4er@...
From: ampl@... [mailto:ampl@...]
On Behalf Of Thomas
Granz
Sent: Tuesday, September 01, 2009
8:10 AM
To: ampl@...
Subject: [AMPL 2786] AW: [AMPL
2783] Re: combining AMPL and CPLEX
Hello,
could this be a problem with different cplex and cplex.c versions ( 'tunewrite'
seems to be new in CPLX ?10.0? )? I need to use 64Bit and I only have CPLEX
9.1.3 in 64Bit. But cplex.c seems to be for CPLEX 11.0.
Best,
L. J.
----- Weitergeleitete Mail ----
Von: Thomas Granz
<amplbox@...>
An: ampl@...
Gesendet: Montag, den 31. August
2009, 16:31:46 Uhr
Betreff: [AMPL 2785] AW: [AMPL
2783] Re: combining AMPL and CPLEX
Thanks Paul,
this brought me one step further. But when I try to compile the driver, I get
the following error:
$ make
cc -s -o cplex cplex.o ../funcadd0.o ../amplsolver.a libcplex.a -lm -lpthread
cplex.o(.text+0x81b4): In function `amplout':
: undefined reference to `tunewrite'
collect2: ld returned 1 exit status
make: *** [cplex] Error 1
I have already compiled 'amplsolver.a' in 'ampl/solvers'. Does anyone has an
idea what the problem is?
Thank you,
L. J.
Von: Paul
<rubin@...>
An: AMPL Modeling Language <ampl@...>
Gesendet: Samstag, den 29. August
2009, 00:58:25 Uhr
Betreff: [AMPL 2783] Re: combining
AMPL and CPLEX
On Aug 28, 10:48 am, Thomas Granz <ampl...@...>
wrote:
>
> I have AMPL and I have a CPLEX 10.1. But my version of CPLEX is not
especially for AMPL. Is there a way to make them work together or do I need a
special CPLEX(for AMPL) version?
> Now, when I use "option solver cplex; solve;" then instead of
solving the given problem a CPLEX comando line is opend.
The command 'cplex' tells CPLEX to run its interactive optimizer,
which is not what you want. You need a driver program that will run
CPLEX's optimization engine only (not the interactive GUI).
Versions of AMPL bought from ILOG should come with an executable named
'cplexamp'. If you have that, just use "option solver cplexamp"
and
you should be in business. If you don't have it, there's C source
code for a drive at the AMPL web site (http://www.ampl.com/
solvers.html#Table).
/Paul
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
|

|
[AMPL 2825] AW: [AMPL 2789] Re: AW: [AMPL 2783] Re: combining AMPL and CPLEX

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Hello Bob,
is there a way to use AMPL and CPLEX together but without the driver?
Thanks, L. J.
Von: Robert Fourer <4er@...> An: ampl@...; Thomas Granz <amplbox@...> Gesendet: Donnerstag, den 3. September 2009, 22:23:44 Uhr Betreff: [AMPL 2789] Re: AW: [AMPL 2783] Re: combining AMPL and CPLEX
This does seem to be a version problem. You need to have a '#define CPX_VERSION 913' in the cplex.c code that you are compiling, so that functions for features that only appeared in later versions are skipped.. Normally the '#include "cplex.h"' at the beginning of cplex.c takes care of this. So check that the cplex.h that you're including is defining the proper CPX_VERSION, and that CPX_VERSION is not being redefined as something else. If you don't find anything wrong then let me know and I'll check further to see if perhaps there is a glitch in cplex.c involving versions earlier than 10. (9.1.3 is a really old, unsupported version, so the problem may not come up too often.)
Bob Fourer 4er@...
From:
ampl@... [mailto: ampl@... ]
On Behalf Of Thomas
Granz
Sent: Tuesday, September 01, 2009
8:10 AM
To: ampl@...
Subject: [AMPL 2786] AW: [AMPL
2783] Re: combining AMPL and CPLEX
Hello,
could this be a problem with different cplex and cplex.c versions ( 'tunewrite'
seems to be new in CPLX ?10.0? )? I need to use 64Bit and I only have CPLEX
9.1.3 in 64Bit. But cplex.c seems to be for CPLEX 11.0.
Best,
L. J.
----- Weitergeleitete Mail ----
Von: Thomas Granz
<amplbox@...>
An: ampl@...
Gesendet: Montag, den 31. August
2009, 16:31:46 Uhr
Betreff: [AMPL 2785] AW: [AMPL
2783] Re: combining AMPL and CPLEX
Thanks Paul,
this brought me one step further. But when I try to compile the driver, I get
the following error:
$ make
cc -s -o cplex cplex.o ../funcadd0.o ../amplsolver.a libcplex.a -lm -lpthread
cplex.o(.text+0x81b4): In function `amplout':
: undefined reference to `tunewrite'
collect2: ld returned 1 exit status
make: *** [cplex] Error 1
I have already compiled 'amplsolver.a' in 'ampl/solvers'. Does anyone has an
idea what the problem is?
Thank you,
L. J.
Von: Paul
<rubin@...>
An: AMPL Modeling Language <
ampl@... >
Gesendet: Samstag, den 29. August
2009, 00:58:25 Uhr
Betreff: [AMPL 2783] Re: combining
AMPL and CPLEX
On Aug 28, 10:48 am, Thomas Granz <ampl...@...>
wrote:
>
> I have AMPL and I have a CPLEX 10.1. But my version of CPLEX is not
especially for AMPL. Is there a way to make them work together or do I need a
special CPLEX(for AMPL) version?
> Now, when I use "option solver cplex; solve;" then instead of
solving the given problem a CPLEX comando line is opend.
The command 'cplex' tells CPLEX to run its interactive optimizer,
which is not what you want. You need a driver program that will run
CPLEX's optimization engine only (not the interactive GUI).
Versions of AMPL bought from ILOG should come with an executable named
'cplexamp'. If you have that, just use "option solver cplexamp"
and
you should be in business. If you don't have it, there's C source
code for a drive at the AMPL web site (http://www.ampl.com/
solvers.html#Table).
/Paul
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
|

|
[AMPL 2830] AW: [AMPL 2825] AW: [AMPL 2789] Re: AW: [AMPL 2783] Re: combining AMPL and CPLEX

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Hello,
my cplex.c does not have a '#define CPX_VERSION 913' but if '#if CPX_VERSION >= 1000' and '#if CPX_VERSION < 1000' How do I get the right 'cplex.c' ?
I tried to compile the driver against cplex 10.1 and I got
almost the same errors:
cc -c -O -I.. cplex.c cc -s -o cplex cplex.o ../funcadd0.o ../amplsolver.a libcplex.a -lm -lpthread cplex.o: In function `amplout': cplex.c:(.text+0x4ff2): undefined reference to `tunewrite' cplex.c:(.text+0x5013): undefined reference to `CPXEwriteparam' collect2: ld returned 1 exit status or on another machine: /usr/bin/ld: warning: i386 architecture of input file `libcplex.a(advance.o)' is incompatible with i386:x86-64 output .. cplex..o: In function `amplout': cplex.c:(.text+0x484d): undefined reference to `tunewrite' cplex.c:(.text+0x4874): undefined reference to `CPXEwriteparam' collect2: ld returned 1 exit status Best, L. J. Von: Thomas Granz <amplbox@...> An: ampl@... Gesendet: Mittwoch, den 16. September 2009, 16:10:25 Uhr Betreff: [AMPL 2825] AW: [AMPL 2789] Re: AW: [AMPL 2783] Re: combining AMPL and CPLEX
Hello Bob,
is there a way to use AMPL and CPLEX together but without the driver?
Thanks, L. J.
Von: Robert Fourer
<4er@...> An: ampl@...; Thomas Granz <amplbox@...> Gesendet: Donnerstag, den 3. September 2009, 22:23:44 Uhr Betreff: [AMPL 2789] Re: AW: [AMPL 2783] Re: combining AMPL and CPLEX
This does seem to be a version problem.. You need to have a '#define CPX_VERSION 913' in the cplex.c code that you are compiling, so that functions for features that only appeared in later versions are skipped.. Normally the '#include "cplex.h"' at the beginning of cplex.c takes care of this. So check that the cplex.h that you're including is defining the proper CPX_VERSION, and that CPX_VERSION is not being redefined as something else. If you don't find anything wrong then let me know and I'll check further to see if perhaps there is a glitch in cplex.c involving versions earlier than 10. (9.1.3 is a really old, unsupported version, so the problem may not come up too often.)
Bob Fourer 4er@...
From:
ampl@... [mailto: ampl@... ]
On Behalf Of Thomas
Granz
Sent: Tuesday, September 01, 2009
8:10 AM
To: ampl@...
Subject: [AMPL 2786] AW: [AMPL
2783] Re: combining AMPL and CPLEX
Hello,
could this be a problem with different cplex and cplex.c versions ( 'tunewrite'
seems to be new in CPLX ?10.0? )? I need to use 64Bit and I only have CPLEX
9.1.3 in 64Bit. But cplex.c seems to be for CPLEX 11.0.
Best,
L. J.
----- Weitergeleitete Mail ----
Von: Thomas Granz
<amplbox@...>
An: ampl@...
Gesendet: Montag, den 31. August
2009, 16:31:46 Uhr
Betreff: [AMPL 2785] AW: [AMPL
2783] Re: combining AMPL and CPLEX
Thanks Paul,
this brought me one step further. But when I try to compile the driver, I get
the following error:
$ make
cc -s -o cplex cplex.o ../funcadd0.o ../amplsolver.a libcplex.a -lm -lpthread
cplex.o(.text+0x81b4): In function `amplout':
: undefined reference to `tunewrite'
collect2: ld returned 1 exit status
make: *** [cplex] Error 1
I have already compiled 'amplsolver.a' in 'ampl/solvers'. Does anyone has an
idea what the problem is?
Thank you,
L. J.
Von: Paul
<rubin@...>
An: AMPL Modeling Language <
ampl@... >
Gesendet: Samstag, den 29. August
2009, 00:58:25 Uhr
Betreff: [AMPL 2783] Re: combining
AMPL and CPLEX
On Aug 28, 10:48 am, Thomas Granz <ampl...@...>
wrote:
>
> I have AMPL and I have a CPLEX 10.1. But my version of CPLEX is not
especially for AMPL. Is there a way to make them work together or do I need a
special CPLEX(for AMPL) version?
> Now, when I use "option solver cplex; solve;" then instead of
solving the given problem a CPLEX comando line is opend.
The command 'cplex' tells CPLEX to run its interactive optimizer,
which is not what you want. You need a driver program that will run
CPLEX's optimization engine only (not the interactive GUI).
Versions of AMPL bought from ILOG should come with an executable named
'cplexamp'. If you have that, just use "option solver cplexamp"
and
you should be in business. If you don't have it, there's C source
code for a drive at the AMPL web site (http://www.ampl.com/
solvers.html#Table).
/Paul
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
|

|
[AMPL 2840] Re: AW: [AMPL 2825] AW: [AMPL 2789] Re: AW: [AMPL 2783] Re: combining AMPL and CPLEX

Some parts of this message have been removed.
Learn more about Nabble's security policy.
You would find '#define
CPX_VERSION 913' in the file cplex.h that is part of the CPLEX callable library
distribution, rather than in cplex.c. The cplex.c program only tests the
value of CPX_VERSION that was set in cplex.h.
In any case, I will report this problem to see if
there is perhaps a bug in the logic of cplex.c. When cplex.c was updated to
accound for the introduction of tunewrite in CPLEX 11, some tests had to be
added to catch compilations against earlier versions, and it's at that point
that a bug might have crept in. It wouldn't be apparent to users of
versions 11.0 and later.
Bob Fourer
4er@...
From: ampl@... [mailto:ampl@...]
On Behalf Of Thomas
Granz [amplbox@...]
Sent: Thursday, September 17, 2009
4:47 AM
To: ampl@...
Subject: [AMPL 2830] AW: [AMPL
2825] AW: [AMPL 2789] Re: AW: [AMPL 2783] Re: combining AMPL and CPLEX
Hello,
my cplex.c does not have a '#define CPX_VERSION 913' but if '#if CPX_VERSION >= 1000' and '#if CPX_VERSION < 1000'
How do I get the right 'cplex.c' ?
I tried to compile the driver against cplex 10.1 and I got almost
the same errors:
cc -c -O -I.. cplex.c
cc -s -o cplex cplex.o ../funcadd0.o ../amplsolver.a libcplex.a -lm -lpthread
cplex.o: In function `amplout':
cplex.c:(.text+0x4ff2): undefined reference to `tunewrite'
cplex.c:(.text+0x5013): undefined reference to `CPXEwriteparam'
collect2: ld returned 1 exit status
or on another machine:
/usr/bin/ld: warning: i386 architecture of input file `libcplex.a(advance.o)'
is incompatible with i386:x86-64 output
..
cplex..o: In function `amplout':
cplex.c:(.text+0x484d): undefined reference to `tunewrite'
cplex.c:(.text+0x4874): undefined reference to `CPXEwriteparam'
collect2: ld returned 1 exit status
Best,
L. J.
Von: Thomas Granz
<amplbox@...>
An: ampl@...
Gesendet: Mittwoch, den 16.
September 2009, 16:10:25 Uhr
Betreff: [AMPL 2825] AW: [AMPL
2789] Re: AW: [AMPL 2783] Re: combining AMPL and CPLEX
Hello Bob,
is there a way to use AMPL and CPLEX together but without the driver?
Thanks,
L. J.
Von: Robert
Fourer <4er@...>
An: ampl@...;
Thomas Granz <amplbox@...>
Gesendet: Donnerstag, den 3.
September 2009, 22:23:44 Uhr
Betreff: [AMPL 2789] Re: AW: [AMPL
2783] Re: combining AMPL and CPLEX
This does seem to be a version problem.. You need to have a '#define CPX_VERSION 913' in the cplex.c code that you are compiling, so that functions for features that only appeared in later versions are skipped.. Normally the '#include "cplex.h"' at the beginning of cplex.c takes care of this. So check that the cplex.h that you're including is defining the proper CPX_VERSION, and that CPX_VERSION is not being redefined as something else. If you don't find anything wrong then let me know and I'll check further to see if perhaps there is a glitch in cplex.c involving versions earlier than 10. (9.1.3 is a really old, unsupported version, so the problem may not come up too often.) Bob Fourer 4er@...
From: ampl@... [mailto: ampl@... ]
On Behalf Of Thomas
Granz
Sent: Tuesday, September 01, 2009
8:10 AM
To: ampl@...
Subject: [AMPL 2786] AW: [AMPL
2783] Re: combining AMPL and CPLEX
Hello,
could this be a problem with different cplex and cplex.c versions ( 'tunewrite'
seems to be new in CPLX ?10.0? )? I need to use 64Bit and I only have CPLEX
9.1.3 in 64Bit. But cplex.c seems to be for CPLEX 11.0.
Best,
L. J.
----- Weitergeleitete Mail ----
Von: Thomas Granz
<amplbox@...>
An: ampl@...
Gesendet: Montag, den 31. August
2009, 16:31:46 Uhr
Betreff: [AMPL 2785] AW: [AMPL
2783] Re: combining AMPL and CPLEX
Thanks Paul,
this brought me one step further. But when I try to compile the driver, I get
the following error:
$ make
cc -s -o cplex cplex.o ../funcadd0.o ../amplsolver.a libcplex.a -lm -lpthread
cplex.o(.text+0x81b4): In function `amplout':
: undefined reference to `tunewrite'
collect2: ld returned 1 exit status
make: *** [cplex] Error 1
I have already compiled 'amplsolver.a' in 'ampl/solvers'. Does anyone has an
idea what the problem is?
Thank you,
L. J.
Von: Paul
<rubin@...>
An: AMPL Modeling Language < ampl@... >
Gesendet: Samstag, den 29. August
2009, 00:58:25 Uhr
Betreff: [AMPL 2783] Re: combining
AMPL and CPLEX
On Aug 28, 10:48 am, Thomas Granz <ampl...@...>
wrote:
>
> I have AMPL and I have a CPLEX 10.1. But my version of CPLEX is not
especially for AMPL. Is there a way to make them work together or do I need a
special CPLEX(for AMPL) version?
> Now, when I use "option solver cplex; solve;" then instead of
solving the given problem a CPLEX comando line is opend.
The command 'cplex' tells CPLEX to run its interactive optimizer,
which is not what you want. You need a driver program that will run
CPLEX's optimization engine only (not the interactive GUI).
Versions of AMPL bought from ILOG should come with an executable named
'cplexamp'. If you have that, just use "option solver cplexamp"
and
you should be in business. If you don't have it, there's C source
code for a drive at the AMPL web site (http://www.ampl.com/
solvers.html#Table).
/Paul
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
|

|
[AMPL 2842] Re: AW: [AMPL 2825] AW: [AMPL 2789] Re: AW: [AMPL 2783] Re: combining AMPL and CPLEX

Some parts of this message have been removed.
Learn more about Nabble's security policy.
It turned out that there was an
#endif in cplex.c that appeared two lines too soon. The netlib archive should have
the corrected version already (or at worst within another day).
-- Bob
From: Thomas
Granz [mailto:amplbox@...]
Sent: Monday, September 21, 2009
4:53 AM
To: 4er@...
Subject: RE: [AMPL 2830] AW: [AMPL
2825] AW: [AMPL 2789] Re: AW: [AMPL 2783] Re: combining AMPL and CPLEX
|
Hello Bob,
I removed this two lines from the cplex.c:
5543 if (pretunefile)
5544
tunewrite(pretunefile, "pretunefile", hbuf, &i, sizeof(hbuf));
I could compile the driver. It seems to work now.
Best Regards,
L.. J.
--- Robert Fourer <4er@...> schrieb am Mo, 21.9.2009:
Von: Robert Fourer <4er@...>
Betreff: RE: [AMPL 2830] AW: [AMPL 2825] AW: [AMPL 2789] Re: AW: [AMPL 2783]
Re: combining AMPL and CPLEX
An: ampl@...,
"'Thomas Granz'" <amplbox@...>
Datum: Montag, 21. September 2009, 2:46
You would find '#define
CPX_VERSION 913' in the file cplex.h that is part of the CPLEX callable
library distribution, rather than in cplex.c. The cplex.c program only
tests the value of CPX_VERSION that was set in cplex.h.
In any
case, I will report this problem to see if there is perhaps a bug in the
logic of cplex.c. When cplex.c was updated to accound for the
introduction of tunewrite in CPLEX 11, some tests had to be added to catch
compilations against earlier versions, and it's at that point that a bug
might have crept in. It wouldn't be apparent to users of versions 11.0
and later.
Bob
Fourer
4er@...
Von: Robert Fourer < 4er@... >
An: ampl@... ; Thomas
Granz <amplbox@...>
Gesendet: Donnerstag, den 3. September 2009, 22:23:44 Uhr
Betreff: [AMPL 2789] Re: AW: [AMPL 2783] Re: combining AMPL and CPLEX
This does seem to be a version problem.. You need to have a '#define CPX_VERSION 913' in the cplex.c code that you are compiling, so that functions for features that only appeared in later versions are skipped.. Normally the '#include "cplex.h"' at the beginning of cplex.c takes care of this. So check that the cplex.h that you're including is defining the proper CPX_VERSION, and that CPX_VERSION is not being redefined as something else. If you don't find anything wrong then let me know and I'll check further to see if perhaps there is a glitch in cplex.c involving versions earlier than 10. (9.1.3 is a really old, unsupported version, so the problem may not come up too often.) Bob Fourer 4er@...
From: ampl@... [mailto: ampl@... ]
On Behalf Of
Thomas Granz
Sent: Tuesday, September 01, 2009 8:10 AM
To: ampl@...
Subject: [AMPL 2786] AW: [AMPL 2783] Re: combining AMPL and CPLEX
Hello,
could this be a problem with different cplex and cplex.c versions (
'tunewrite' seems to be new in CPLX ?10.0? )? I need to use 64Bit and I only
have CPLEX 9.1.3 in 64Bit. But cplex.c seems to be for CPLEX 11.0.
Best,
L. J.
----- Weitergeleitete Mail ----
Von: Thomas Granz <amplbox@...>
An: ampl@...
Gesendet: Montag, den 31. August 2009, 16:31:46 Uhr
Betreff: [AMPL 2785] AW: [AMPL 2783] Re: combining AMPL and CPLEX
Thanks Paul,
this brought me one step further. But when I try to compile the driver, I get
the following error:
$ make
cc -s -o cplex cplex.o ../funcadd0.o ../amplsolver.a libcplex.a -lm -lpthread
cplex.o(.text+0x81b4): In function `amplout':
: undefined reference to `tunewrite'
collect2: ld returned 1 exit status
make: *** [cplex] Error 1
I have already compiled 'amplsolver.a' in 'ampl/solvers'. Does anyone has an
idea what the problem is?
Thank you,
L. J.
Von: Paul <rubin@...>
An: AMPL Modeling Language < ampl@...
>
Gesendet: Samstag, den 29. August 2009, 00:58:25 Uhr
Betreff: [AMPL 2783] Re: combining AMPL and CPLEX
On Aug 28, 10:48 am, Thomas Granz <ampl...@...> wrote:
>
> I have AMPL and I have a CPLEX 10.1. But my version of CPLEX is
not especially for AMPL. Is there a way to make them work together or do I
need a special CPLEX(for AMPL) version?
> Now, when I use "option solver cplex; solve;" then instead of
solving the given problem a CPLEX comando line is opend.
The command 'cplex' tells CPLEX to run its interactive optimizer,
which is not what you want. You need a driver program that will run
CPLEX's optimization engine only (not the interactive GUI).
Versions of AMPL bought from ILOG should come with an executable named
'cplexamp'. If you have that, just use "option solver
cplexamp" and
you should be in business. If you don't have it, there's C source
code for a drive at the AMPL web site (http://www.ampl.com/
solvers.html#Table).
/Paul
|
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
|