Giter Site home page Giter Site logo

Simple CVX problem causes error about ecos HOT 3 OPEN

embotech avatar embotech commented on July 18, 2024
Simple CVX problem causes error

from ecos.

Comments (3)

mcg1969 avatar mcg1969 commented on July 18, 2024

I am guessing it's an issue with zero-dimension matrices. Sometimes [] has size (0,0) when it needs to be (0,1) or (1,0).

On Feb 17, 2014, at 5:33 PM, "Eric Chu" <[email protected]mailto:[email protected]> wrote:

Here's a simple CVX script that throws an error:

cvx_begin
variable x
cvx_solver ecos
minimize x
x >= 1
cvx_end

Here's the output:

Calling ECOS unknown: 1 variables, 1 equality constraints


Status: Error
Optimal value (cvx_optval): NaN

??? Error using ==> ecos
G and h do not match in dimension

I think I know what's going on, but if anyone else has some spare time and wants to look into this, they should feel to.


Reply to this email directly or view it on GitHubhttps://github.com//issues/36.

from ecos.

echu avatar echu commented on July 18, 2024

I no longer have access to Matlab. :)

@adomahidi, can you verify that we've fixed this issue already?

from ecos.

adomahidi avatar adomahidi commented on July 18, 2024

This is what I get:

Calling ECOS 2.0.0: 1 variables, 1 equality constraints
------------------------------------------------------------
------------------------------------------------------------
Status: Error
Optimal value (cvx_optval): NaN

Error using ecos
ECOS does not support equality constrained problems without inequalities yet.

I can't determine why ECOS is being called with an equality constrained problem (apart from the fact that it is obvious that the constraint must hold with equality) - @mcg1969, any ideas? Do you have a pre-solver in CVX to eliminate such "obvious" things?

from ecos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.