This repository contains the up-to-date version of ASL (AMPL Solver Library) as maintained by David Gay. It supports cmake multiplatform builds.
There are a few cmake switches that define which optional modules will be built:
To build the static library under x86 Unix/Linux systems and the examples, simply do the following:
mkdir build
cd build
cmake .. -DBUILD_EXAMPLES=1
make .
This by default builds 64 bits versions of the libraries, to build 32 bits builds, define the variable ARCH when calling cmake:
cmake .. -DARCH=32
To build the library on Windows (this assumes Visual Studio 2019 as a generator); note also that after the third step you'll have a file ASL.sln that can
be opened from Visual Studio to continue the build from there.
md build
cd build
cmake ..
cmake --build .
To build other flavours of the library, replace the cmake .. command with:
cmake .. -A Win32BSD-3 SMLNJ
Copyright © 2023 AMPL Optimization inc. All rights reserved.
C
89.6%
Fortran
7.4%
This repository contains the up-to-date version of ASL (AMPL Solver Library) as maintained by David Gay. It supports cmake multiplatform builds.
There are a few cmake switches that define which optional modules will be built:
To build the static library under x86 Unix/Linux systems and the examples, simply do the following:
mkdir build
cd build
cmake .. -DBUILD_EXAMPLES=1
make .
This by default builds 64 bits versions of the libraries, to build 32 bits builds, define the variable ARCH when calling cmake:
cmake .. -DARCH=32
To build the library on Windows (this assumes Visual Studio 2019 as a generator); note also that after the third step you'll have a file ASL.sln that can
be opened from Visual Studio to continue the build from there.
md build
cd build
cmake ..
cmake --build .
To build other flavours of the library, replace the cmake .. command with:
cmake .. -A Win32BSD-3 SMLNJ
Copyright © 2023 AMPL Optimization inc. All rights reserved.
C
89.6%
Fortran
7.4%