https://github.com/ampl/asl
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ampl/asl
- Owner: ampl
- License: bsd-3-clause
- Created: 2020-03-04T16:01:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-07T08:49:43.000Z (about 1 year ago)
- Last Synced: 2025-04-07T09:36:53.620Z (about 1 year ago)
- Language: C
- Size: 2.31 MB
- Stars: 18
- Watchers: 8
- Forks: 15
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Support: support/cmake/addPrefix.cmake
Awesome Lists containing this project
README
# asl
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:
- *BUILD_EXAMPLES* builds the ASL examples
- *BUILD_F2c* build the f2c (Fortran To C) library; implied in case the examples are being compiled
- *BUILD_MT_LIBS* builds the asl-mt and asl2-mt libraries, multithreaded, compiled using OpenMP switches
## Linux systems
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
```
## Windows systems
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:
* **VS2019 32 bits:** `cmake .. -A Win32`
* **VS2017 64 bits:** `cmake .. -G "Visual Studio 15 2017 Win64"
* **VS2017 32 bits:** `cmake .. -G "Visual Studio 15 2017"
## Licenses
BSD-3
SMLNJ
***
Copyright © 2023 AMPL Optimization inc. All rights reserved.