Skip to content

Installation problem on Windows #94

@jaehyunp

Description

@jaehyunp

Here is the code and error message I got after installing the latest version of ecos on Windows 8.1 x64. MATLAB version is 8.3 (R2014a).

n = 5;
A = rand(n); b = rand(n, 1);
cvx_begin
      cvx_solver ecos     % without this line, CVX will use its default solver
      variable x(n)

      minimize sum_square(A*x - b)
      subject to
           x >= 0
 cvx_end

Calling ECOS 1.0.5: 12 variables, 6 equality constraints
   For improved efficiency, ECOS is solving the dual problem.
------------------------------------------------------------
------------------------------------------------------------
Status: Error
Optimal value (cvx_optval): NaN


Error using ecos
Internal problem occurred in ECOS while setting up the problem.
Please send a bug report with data to Alexander Domahidi.
Email: domahidi@control.ee.ethz.ch

Error in cvx_run_solver (line 50)
   [ varargout{1:nargout} ] = sfunc( inputs{:} );

Error in cvx_solver_shim>solve (line 185)
[ yy, xf, info, zz, xK ] = cvx_run_solver( @ecos, ecos_c, ecos_G, ecos_h, K,
ecos_A, ecos_b, opts, varnames{:}, settings, 7 ); %#ok

Error in cvxprob/solve (line 423)
            [ x, status, tprec, iters, y ] = shim.solve( At, b, c, cones,
            quiet, prec, solv.settings, eargs{:} );

Error in cvx_end (line 88)
        solve( prob );

It looks like installation itself went fine...

cvx_install_ecos
Compiling LDL...Building with 'Microsoft Visual C++ 2013 Professional (C)'.
MEX completed successfully.
            [done]
Compiling AMD...Building with 'Microsoft Visual C++ 2013 Professional (C)'.
MEX completed successfully.
            [done]
Compiling ecos...Building with 'Microsoft Visual C++ 2013 Professional (C)'.
MEX completed successfully.
            [done]
Compiling ecos_mex...Building with 'Microsoft Visual C++ 2013 Professional (C)'.
MEX completed successfully.
            [done]
Linking...     Building with 'Microsoft Visual C++ 2013 Professional (C)'.
MEX completed successfully.
                [done]
ecos successfully compiled. Happy solving!

---------------------------------------------------------------------------
CVX: Software for Disciplined Convex Programming       (c)2014 CVX Research
Version 2.1, Build 1085 (9a166a6)                   Tue Jun 3 13:52:20 2014
---------------------------------------------------------------------------
Installation info:
    Path: C:\Users\Jaehyun\Documents\MATLAB\cvx
    MATLAB version: 8.3 (R2014a)
    OS: Windows 8 amd64 version 6.2
    Java version: 1.7.0_11
Verfying CVX directory contents:
    WARNING: The following extra files/directories were found:
        C:\Users\Jaehyun\Documents\MATLAB\cvx\ecos\ + 1 files, 0 subdirectories
        C:\Users\Jaehyun\Documents\MATLAB\cvx\shims\cvx_ecos.m
    These files may alter the behavior of CVX in unsupported ways.
Preferences: 
    Path: C:\Users\Jaehyun\AppData\Roaming\MathWorks\MATLAB\cvx_prefs.mat
License host:
    Username: Jaehyun
    Host ID: 003048bf55e2 (eth1)
Installed license:
    No license installed.
No valid licenses found.
---------------------------------------------------------------------------
Setting CVX paths...already set!
Searching for solvers...7 shims found.
3 solvers initialized (* = default):
 *  SDPT3    4.0        {cvx}\sdpt3
    SeDuMi   1.34       {cvx}\sedumi
    ECOS     1.0.5      C:\Users\Jaehyun\Documents\GitHub\ecos\matlab
4 solvers skipped:
    ECOS                
        Could not find an ECOS installation.
    GLPK                
        Could not find a GLPK installation.
    Gurobi              {cvx}\gurobi\w64
        No valid Gurobi license was found. (Please note that this
        license is *not the same* as the CVX license; it must be
        obtained directly from Gurobi Optimization.) If you do have
        a Gurobi license, the the Gurobi MEX file could not find it.
        Please consult the Gurobi documentation for assistance.
    Mosek    unknown    {cvx}\mosek\w64
        A CVX Professional license is required.
Saving updated preferences...done.
Testing with a simple model...done!
---------------------------------------------------------------------------
To change the default solver, type "cvx_solver <solver_name>".
To save this change for future sessions, type "cvx_save_prefs".
Please consult the users' guide for more information.
---------------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions