Comments (2)
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/davidlizengjulia> 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.
Closed by this commit
from convex.jl.
Related Issues (20)
- problem with Convex and new SCS (0.8.1) HOT 7
- First-run after `include(my_file.jl)` is faster than later HOT 8
- Quesitons about how Convex.jl works HOT 3
- Convex does not support broadcasting
- Fix the docs HOT 2
- LASSO/Elastic Net example HOT 4
- When I run EF optimisatios I get this error: Quadratic form only defined for Hermitian matrices
- Different result each time problem is solved HOT 3
- Positive semidefinite constraint still gives small negative eigenvalues HOT 4
- Support for quasiconvex problems HOT 2
- SDP problem 100x slower than matlab CVX HOT 3
- Precompilation failure HOT 2
- Does Convex.jl support "Difference of Convex Algorithm (DCA)"? HOT 1
- Relative Entropy Not in Supported Operations Documentation HOT 2
- trace_mpower with BigFloat HOT 2
- Add excludes MOI and Convex tests with presolve HOT 1
- Method overwrite precompilation error on nightly HOT 1
- `dot` buggy in complex case?
- Scalar indexing of row of matrix creates row vector, causing incorrect `dot` HOT 1
- Incorrect results when kron, subtraction, and matrix multiplication of complex variables involved
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from convex.jl.