-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preparing for 20240823 release.
- Loading branch information
Showing
22 changed files
with
147 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
The solver "cplex" uses CPLEX (a trademark of IBM, | ||
Inc.; see https://www.ibm.com/products/ilog-cplex-optimization-studio) | ||
to solve integer, mixed-integer, and linear programming problems; | ||
it is an alternative to the ASL-based driver implemented using the mp | ||
library (https://github.com/ampl/mp) for communicating with AMPL and | ||
for reformlation of certain types of problems. | ||
Normally gurobi is invoked by AMPL's solve command, which gives the | ||
invocation | ||
|
||
cplex stub -AMPL | ||
|
||
in which stub.nl is an AMPL generic output file (possibly written | ||
by "ampl -obstub" or "ampl -ogstub"). After solving the problem, | ||
cplex writes a stub.sol file for use by ampl's solve and solution | ||
commands. When you run ampl, this all happens automatically if you | ||
give the AMPL commands | ||
|
||
option solver cplex; | ||
solve; | ||
|
||
You can control cplex by setting the environment variable cplex_options | ||
appropriately (either by using ampl's option command, or by using the | ||
shell's set and export commands before you invoke ampl). You can put | ||
one or more (white-space separated) phrases in $cplex_options. To see | ||
the possibilities, invoke | ||
|
||
cplex -= | ||
|
||
---------- | ||
INSTALLING | ||
========== | ||
|
||
On Linux systems, libcplex*.so (where the value of "*" depends | ||
on the current version of CPLEX) and the libcplex.so.* to which | ||
it points need to appear in the current directory when CPLEX | ||
itself appears there, or in one of the standard places (specified by | ||
/etc/ld.so.conf on some systems), or in a directory named in | ||
$LD_LIBRARY_PATH. An alternative is to add a short shell script, | ||
such as | ||
|
||
#!/bin/sh | ||
LD_LIBRARY_PATH=/usr/local/lib | ||
export LD_LIBRARY_PATH | ||
exec /usr/local/bin/cplexx "$@" | ||
|
||
to a directory in your usual $PATH (and mark the script executable | ||
with, e.g., "chmod +x cplex"). The above script assumes that the | ||
true "cplex" binary has been moved to /usr/local/bin/cplexx and that | ||
the libcplex* files have been moved to /usr/local/lib. | ||
|
||
MacOSX systems are similar to Linux systems, but with DYLD_LIBRARY_PATH | ||
in place of LD_LIBRARY_PATH. | ||
|
||
On MS Windows systems, cplex.exe and the relevant cplex*.dll must | ||
appear somewhere in your usual search $PATH (or in the current | ||
directory). | ||
|
||
If you have questions about or find bugs with this stuff, | ||
please contact: | ||
|
||
AMPL Support | ||
[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include "cplex/cplex-ampls-c-api.h" | ||
|
||
AMPLS_C_EXPORT AMPLS_MP_Solver* AMPLSOpen_cplex(int argc, char** argv) | ||
{ | ||
CCallbacks cb = { NULL }; | ||
return Open_cplex(cb); | ||
} |
2 changes: 1 addition & 1 deletion
2
solvers/cplexmp/cplexmp-modelapi-connect.cc → solvers/cplex/cplex-modelapi-connect.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
solvers/cplexmp/cplexmpcommon.cc → solvers/cplex/cplexcommon.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#include "mp/format.h" | ||
#include "cplexmpcommon.h" | ||
#include "cplexcommon.h" | ||
|
||
namespace mp { | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
solvers/cplexmp/cplexmpmodelapi.cc → solvers/cplex/cplexmodelapi.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "cplexmpmodelapi.h" | ||
#include "cplexmodelapi.h" | ||
|
||
|
||
namespace mp { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Empty file.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters