Skip to content

README example fails #300

@scottstanie

Description

@scottstanie

When running the first example in the README, it fails with the following versions installed on Julia 1.1.0:

(v1.1) pkg> status
    Status `~/.julia/environments/v1.1/Project.toml`
  [f65535da] Convex v0.12.2
  [c946c3f1] SCS v0.5.1
julia> # Solve the problem by calling solve!
       solve!(problem)
ERROR: ArgumentError: The provided problem hasn't been initialized with a conic model.
            You can resolve this by passing in `AbstractMathProgSolver` such as:
            solve!(problem, ECOSSolver())

Running that suggested command also fails (even if I run using SCS) with

julia> # Solve the problem by calling solve!
       solve!(problem, ECOSSolver() )
ERROR: UndefVarError: ECOSSolver not defined

though if I can get it to work by running

solve!(problem, SCSSolver() )

Not sure which parts of it you'd want to update, but let me know if you want to just add the using SCS and change it to solve!(problem, SCSSolver() )

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