# How to use Gurobi Attributes in Julia

**URL:** https://discourse.julialang.org/t/how-to-use-gurobi-attributes-in-julia/25529
**Category:** New to Julia
**Tags:** question
**Created:** [June 21, 2019, 3:36pm UTC](https://discourse.julialang.org/t/how-to-use-gurobi-attributes-in-julia/25529 "2019-06-21T15:36:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vikas9087](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vikas9087/32/9002_2.png) [@vikas9087](https://discourse.julialang.org/u/vikas9087)
#### Post date: [June 21, 2019, 3:36pm UTC](https://discourse.julialang.org/t/how-to-use-gurobi-attributes-in-julia/25529/1 "2019-06-21T15:36:51Z")

</div>

Hi,

I am trying to use one Gurobi attribute ( **UnbdRay** , [UnbdRay](https://www.gurobi.com/documentation/8.1/refman/unbdray.html#attr:UnbdRay)) but I am unable to find the macro to be used in Gurobi.

Below is an example I am trying to use  
SP=Model(solver=GurobiSolver( **InfUnbdInfo=1** ))  
status= unbound

**Now I am trying below macros to get unbound ray**  
getUnbdRay(SP)

below is the error  
**ERROR: UndefVarError: getUnbdRay not defined**

Can anyone please help me how to call the attributes of Gurobi in Julia.

Thank you.  
Vikas
