Closed RoyiAvital closed 5 months ago
Hello, I tried registering academic license of Gurobi. I had failed messages on cvx_grbgetkey() function.
cvx_grbgetkey()
On the latest version at the moment (Version 2.2, January 2020, Build 1148) there is at line 299 the following:
Version 2.2, January 2020, Build 1148
[status,result]=system( sprintf( '%s --path=%s %s', gname, tdir, kcode ) ); %#ok
The issue is in case the path of gname or tdir includes spaces the operation fails. In order to support spaces the string should have " at the beginning and the end.
gname
tdir
"
So something like the following will fix it:
gname = ['"', gname, '"']; tdir = ['"', tdir, '"'];
Closing this in favor of the open-sourced Gurobi shim to come (which will need fixing anyway!)
I am excited to see new updates are coming. Thanks!
Hello, I tried registering academic license of Gurobi. I had failed messages on
cvx_grbgetkey()
function.On the latest version at the moment (
Version 2.2, January 2020, Build 1148
) there is at line 299 the following:The issue is in case the path of
gname
ortdir
includes spaces the operation fails. In order to support spaces the string should have"
at the beginning and the end.So something like the following will fix it: