Skip to main content

Comments

6 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • Eli Towle
    • Gurobi Staff

    Hi Lars,

    The setup is the same. You just need to specify your Cloud credentials when solving a model.

    1. In the Cloud Manager interface, navigate to Settings->API Keys. If you do not have an API key for your license, create one. Note the Access ID and Secret Key.
    2. In MATLAB, create an env \( \texttt{struct} \), populating the \( \texttt{accessid} \) and \( \texttt{secretkey} \) fields: \( \texttt{env = struct('accessid', '<access ID here>', 'secretkey', '<secret key here>');}. \) You can optionally specify a \( \texttt{pool} \) field.
    3. Pass this \( \texttt{env} \) \( \texttt{struct} \) to the gurobi() function: \( \texttt{result = gurobi(model, params, env);} \).

    Thanks,

    Eli

    0
  • Lars Abrahamsson
    • Gurobi-versary
    • First Question
    • Conversationalist

    Hi Eli,

    To start with, if following the instructions in https://www.gurobi.com/documentation/9.0/quickstart_windows/matlab_setting_up_grb_for_.html, there is no "gurobi_setup.m" file in the "C:\gurobi_server902" directory.

    /Lars

    0
  • Eli Towle
    • Gurobi Staff

    Hi Lars,

    The \( \texttt{gurobi_server902} \) package is for Gurobi Remote Services, which you don't need with a Cloud license. You should download the Gurobi Optimizer package from the Gurobi website, which installs to \(\texttt{C:\gurobi902}\). The \( \texttt{gurobi_setup.m} \) file can then be found in \( \texttt{C:\gurobi902\win64\matlab} \).

    Thanks,

    Eli

    1
  • Lars Abrahamsson
    • Gurobi-versary
    • First Question
    • Conversationalist

    Ah, so it is the same package to install as if you have a local license? https://packages.gurobi.com/9.0/Gurobi-9.0.2-win64.msi ?

    0
  • Eli Towle
    • Gurobi Staff

    Hi Lars,

    Yes, that's correct.

    Eli

    1

Post is closed for comments.