Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cvx on a multi user system #4

Open
steverweber opened this issue Jan 10, 2019 · 1 comment
Open

cvx on a multi user system #4

steverweber opened this issue Jan 10, 2019 · 1 comment

Comments

@steverweber
Copy link

Would like to include cvx in matlab on a multi user system.
So students at our university don't have to preform a manual install.

is there some way to setup cvx so it is globally installed in matlab so all users on our linux server are good to go.

Thanks.

@steverweber steverweber changed the title we would like to include cvx on a multi user system cvx on a multi user system Jan 10, 2019
@steverweber
Copy link
Author

what i tried

# as root
cd /opt
curl http://web.cvxr.com/cvx/cvx-a64.tar.gz | tar -xz

# as someuser
su someuser
cd ~
export MATLABPATH=/opt/cvx:/opt/cvx/builtins:/opt/cvx/commands:/opt/cvx/functions:/opt/cvx/lib:/opt/cvx/structures

matlab

try some code
...
m = 20; n = 10; p = 4;
A = randn(m,n); b = randn(m,1);
C = randn(p,n); d = randn(p,1); e = rand;
cvx_begin
Struct contents reference from a non-struct array object.

Error in cvx_global (line 76)
osolvers = cvx___.solvers.list;

Error in cvxprob (line 4)
cvx_global

Error in cvx_begin (line 41)
assignin( 'caller', 'cvx_problem', cvxprob( varargin{:} ) );
... 

alright that failed... run matlab and then cvx_setup

>> cvx_setup

---------------------------------------------------------------------------
CVX: Software for Disciplined Convex Programming       (c)2014 CVX Research
Version 2.1, Build 1127 (95903bf)                  Sat Dec 15 18:52:07 2018
---------------------------------------------------------------------------
Installation info:
....
success.

find out that cvx_setup seems to create a file ~/.matlab/cvx_prefs.mat
and that file is needed.

is there some way to install cvx so the users dont need to run cvx_setup for the first run?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant