Matlab and the Cloud License
回答済みHi,
How should I do to use Gurobi from Matlab when we only have the Cloud License?
This information
https://www.gurobi.com/documentation/9.0/quickstart_windows/matlab_setting_up_grb_for_.html
seems to only be for the local solver of Gurobi and Matlab.
/Lars
-
正式なコメント
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?. -
Hi Lars,
The setup is the same. You just need to specify your Cloud credentials when solving a model.
- 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.
- 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.
- Pass this \( \texttt{env} \) \( \texttt{struct} \) to the gurobi() function: \( \texttt{result = gurobi(model, params, env);} \).
Thanks,
Eli
0 -
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 -
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 -
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 -
Hi Lars,
Yes, that's correct.
Eli
1
投稿コメントは受け付けていません。
コメント
6件のコメント