Compile m files to an exe by matlab deploytool, but error when using this exe


I compile m files to an exe by matlab deploytool. When running this exe, an error shows up

Error in cvxprob at 48
Error in cvx_begin at 41
Attempt to reference field of non-structure array.

The cvx code is
cvx_begin quiet
variable var_x(NumVar,1)
minimize( norm(var_x - var_y) )
subject to
zeros(NumVar,1) <= var_x <= ones(NumVar,1)
0 <= sum(var_x) <= 1
vec_1 <= matrix_a*var_x <= vec_2

I need to run a program very long time. So it is convenient to use exe version.

Anybody do the same thing before? Many thanks.

Version info is here:

CVX: Software for Disciplined Convex Programming ©2014 CVX Research
Version 2.1, Build 1116 (d4cc5c5) Thu Mar 30 21:54:11 2017

Installation info:
Path: e:\mine\wb\Working\mFiles\cvx
MATLAB version: 8.5 (R2015a)
OS: Windows 7 amd64 version 6.1
Java version: 1.7.0_60
Verfying CVX directory contents:
No missing files.
Path: C:\Users\weibei\AppData\Roaming\MathWorks\MATLAB\cvx_prefs.mat
License host:
Username: weibei
Host ID: c8d3ffb141d2 (eth3)
Installed license:
No license installed.
No valid licenses found.
Click here to fill out an academic license request
for the username and first hostid listed above.

(Mark L. Stone) #2

This is not possible with CVX. I don’t think the answer has changed since this post