Giter Club home page Giter Club logo

Comments (2)

madeleineudell avatar madeleineudell commented on June 1, 2024

I'm in favor of throwing an error upon a call to conic_form! for a non-DCP
multiplication atom.

On Mon, Nov 17, 2014 at 6:33 PM, Karanveer Mohan [email protected]
wrote:

The following non-DCP compliant code correctly throws the warnings.
However, if the user proceeds to call solve!, we crash out since
multiplication atom assumes one of its arguments will be a Constant.

We should either throw an error, instead of just a warning, or actually
allow the user to solve the non-dcp problem. @davidlizeng
https://github.com/davidlizeng

julia> using Convex; x=Variable(); y=Variable();
julia> p=minimize(x*y)
WARNING: Expression not DCP compliant
Problem:
minimize AbstractExpr with
head: *
size: (1, 1)
sign: NoSign()
vexity: NotDcp()

subject to

current status: not yet solved

julia> solve!(p)
ERROR: getindex has no method matching getindex(::Nothing, ::Int64)
in conic_form! at /Users/karanveer/.julia/v0.3/Convex/src/atoms/affine/multiply_divide.jl:75
in conic_form! at /Users/karanveer/.julia/v0.3/Convex/src/atoms/affine/add_subtract.jl:106
in conic_form! at /Users/karanveer/.julia/v0.3/Convex/src/constraints/constraints.jl:36
in conic_form! at /Users/karanveer/.julia/v0.3/Convex/src/problems.jl:61
in conic_problem at /Users/karanveer/.julia/v0.3/Convex/src/problems.jl:73
in solve! at /Users/karanveer/.julia/v0.3/Convex/src/solution.jl:23 (repeats 2 times)


Reply to this email directly or view it on GitHub
#28.

Madeleine Udell
PhD Candidate in Computational and Mathematical Engineering
Stanford University
www.stanford.edu/~udell

from convex.jl.

madeleineudell avatar madeleineudell commented on June 1, 2024

Closed by this commit

from convex.jl.

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.