Giter Site home page Giter Site logo

ampl / rampl Goto Github PK

View Code? Open in Web Editor NEW
15.0 10.0 8.0 905 KB

R API for AMPL

Home Page: http://rAMPL.ampl.com

License: BSD 3-Clause "New" or "Revised" License

R 12.35% C++ 84.78% AMPL 0.01% Python 1.79% Shell 1.07%
ampl integer-linear-programming integer-programming linear-optimization linear-programming mip mixed-integer-optimization mixed-integer-programming modeling-language nonlinear-optimization

rampl's Introduction

rAMPL

Build Status build-and-test

AMPL API is an interface that allows developers to access the features of the AMPL interpreter from within a programming language. All model generation and solver interaction is handled directly by AMPL, which leads to great stability and speed; the library just acts as an intermediary, and the added overhead (in terms of memory and CPU usage) depends mostly on how much data is read back from AMPL, the size of the model as such is irrelevant. Functions for directly assigning data to AMPL parameters and sets are provided, which can be used instead of the normal AMPL data reading procedures. AMPL API has been written with usability in mind, and it is easy to access its functionalities from C++, Java, C#, MATLAB, Python, and R.

The AMPL API can function as an add-on to any existing AMPL installation. If you do not yet have an AMPL installation on the computer where you will be working with the API. Use our Community Edition to download a working version that can be installed quickly.

Documentation

Setup

In order to install the latest version of the R API you just need to run:

> install.packages("Rcpp", type="source")
> install.packages("https://ampl.com/dl/API/rAMPL.tar.gz", repos=NULL)

Note: this package requires R development tools on Windows and macOS, which can be installed as follows:

Alternatively, you can download, build, and install the package locally:

$ git clone [email protected]:ampl/rAMPL.git
$ cd rAMPL
$ python updatelib.py
$ cd ..
$ R CMD build rAMPL 
$ R CMD INSTALL rAMPL_<version>.tar.gz

License

BSD-3


Copyright © 2023 AMPL Optimization inc. All rights reserved.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.