Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Oct 30, 2023
1 parent 99c1209 commit 0de4167
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,13 @@ As general rules when converting from Julia to C:

* When Gurobi requires the column index of a variable `x`, use
`Cint(Gurobi.column(model, x) - 1)`
* When Gurobi requires a `Ptr{T}` that holds one element, like `* int`,
use a `Ref{T}()`
* When Gurobi requires a `Ptr{T}` that holds one element, like `double *`,
use a `Ref{T}()`.
* When Gurobi requries a `Ptr{T}` that holds multiple elements, use
a `Vector{T}`.
* When Gurobi requires a `double`, use `Cdouble`
* When Gurobi requires an `int`, use `Cint`
* When Gurobi requires a `NULL`, use `C_NULL`

For example:

Expand Down

0 comments on commit 0de4167

Please sign in to comment.