Hide navigation sidebar
Hide table of contents sidebar
Back to top
Toggle table of contents sidebar

# R API Overview

This section documents the Gurobi R interface. For those of you who are not familiar with R, it is a free language for statistical computing. Please visit the R web site for more information. This manual begins with a quick overview of the methods provided by our R API. It then continues with a comprehensive presentation of all of the available methods, their arguments, and their return values.

For information about how to install the Gurobi R interface, please refer to the Gurobi R API installation guide.

If you are new to the Gurobi Optimizer, we suggest that you start with the Getting Started Knowledge Base article for general information. This also includes Tutorials for the different Gurobi APIs. Additionally, our Example Tour provides concrete examples of how to use the methods described here. We will point to sections or examples of this tour whenever it fits in this overview.

A quick note for new users: the convention in math programming is that variables are non-negative unless specified otherwise. You’ll need to explicitly set lower bounds if you want variables to be able to take negative values.

Contents

- Overview
  - Models
  - Solving a Model
  - Multiple Solutions and Multiple Objectives
  - Infeasible Models
  - Managing Parameters
  - Monitoring Progress
  - Error Handling
  - Environments and license parameters
- Common Arguments
  - The model argument
    - Commonly used named components
    - Quadratic objective and constraint named components
    - SOS constraint named components
    - Multi-objective named components
    - Computing an IIS
    - General constraint named components
    - Advanced named components
  - The params argument
    - Using a Compute Server License
    - Using a Gurobi Instant Cloud License
- Solving a Model
  - `gurobi`
  - `gurobi_iis`
  - `gurobi_feasrelax`
  - `gurobi_relax`
- Input-Output
  - `gurobi_read`
  - `gurobi_write`
- Installing the R package

Help and Feedback

Press `/` or click to search this documentation | Gurobi website | Gurobi community forum
Go to other Gurobi documentation | Gurobi download | Contact support