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's People

Contributors

fdabrandao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rampl's Issues

A typo in 'rAMPL/docs/source/getting-started.rst'

Thanks for the nice AMPL R API :D
The following line of code to add AMPL binary location to 'PATH' used ';' as the separator whereas the default separator for PATH on Unix is ':'. This raises “AMPL could not be started” error when creating AMPL class later on.

 Sys.setenv(PATH = paste(Sys.getenv("PATH"), "full path to the AMPL installation directory", sep = ";"))

Makevars not working on mac

The Makevars doesn't work on my mac, i got the following error :

clang++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -L/Users/user_name/opt/clang+llvm-4.0.1-x86_64-apple-macosx10.9.0/lib -lomp -o rAMPL.so RcppExports.o rampl.o rcon_entity.o rcon_instance.o renvironment.o robj_entity.o robj_instance.o rparam_entity.o rset_entity.o rset_instance.o rvar_entity.o rvar_instance.o utils.o -L../inst/libs/x64 -L../inst/libs/i386 -lampl -Wl,-rpath,@loader_path/../libs/x64 -Wl,-rpath,$ORIGIN/../libs/x64 -Wl,-rpath,$ORIGIN/../libs/i386 -Wl,-rpath,$ORIGIN/../inst/libs/x64 -Wl,-rpath,$ORIGIN/../inst/libs/i386 SHLIB_LIBADD = -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
clang: error: no such file or directory: 'SHLIB_LIBADD'
clang: error: no such file or directory: '='
make: *** [rAMPL.so] Error 1

rampl_reading_data_defined_in_R_through_tables

Hello,

I need some help regarding the link between ampl and R;

All my data is already prepared in tables in R.

I was wondering if these data can be directly read by ampl code through the same R code, where I defined the inputs as tables.

Thank you,

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.