Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access linear constraint from ConstraintRef #598

Merged
merged 1 commit into from
Oct 13, 2015
Merged

access linear constraint from ConstraintRef #598

merged 1 commit into from
Oct 13, 2015

Conversation

mlubin
Copy link
Member

@mlubin mlubin commented Oct 8, 2015

Instead of a new export as suggested in #462 (comment), just add a new constructor for LinearConstraint. If we want a more generic version, we can do

getConstraint{T}(ref::ConstraintRef{T}) = T(ref)

on top of this.

Can be implemented for other constraint types (as needed).

@FabrizioLacalandra, you may be interested in this

@mlubin
Copy link
Member Author

mlubin commented Oct 13, 2015

Added some docs, ready to merge.

@joehuchette
Copy link
Contributor

👍

@mlubin
Copy link
Member Author

mlubin commented Oct 13, 2015

Homebrew's not working on julia nightly? @staticfloat @tkelman

WARNING: src::AbstractCmd |> dest::AbstractCmd is deprecated, use pipeline(src,dest) instead.
 [inlined code] from error.jl:26
 in depwarn at deprecated.jl:73
 in |> at deprecated.jl:50
 in install_brew at /Users/travis/.julia/v0.5/Homebrew/src/Homebrew.jl:80
 in init at /Users/travis/.julia/v0.5/Homebrew/src/Homebrew.jl:26
 in include at /Users/travis/julia/lib/julia/sys.dylib
 in include_from_node1 at /Users/travis/julia/lib/julia/sys.dylib
 in require at /Users/travis/julia/lib/julia/sys.dylib
 in include at /Users/travis/julia/lib/julia/sys.dylib
 in include_from_node1 at /Users/travis/julia/lib/julia/sys.dylib
 [inlined code] from sysimg.jl:14
 in evalfile at loading.jl:320
 in evalfile at loading.jl:320
 in anonymous at none:8
 in cd at file.jl:22
 in anonymous at none:7
 in open at iostream.jl:114
 in process_options at /Users/travis/julia/lib/julia/sys.dylib
 in _start at /Users/travis/julia/lib/julia/sys.dylib
while loading /Users/travis/.julia/v0.5/Homebrew/src/Homebrew.jl, in expression starting on line 353
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  258k  100  258k    0     0   303k      0 --:--:-- --:--:-- --:--:--  303k
WARNING: Could not tap staticfloat/juliadeps!
==============================[ ERROR: Homebrew ]===============================
LoadError: LoadError: pipe is already initialized
while loading /Users/travis/.julia/v0.5/Homebrew/src/Homebrew.jl, in expression starting on line 353
while loading /Users/travis/.julia/v0.5/Homebrew/deps/build.jl, in expression starting on line 1

@tkelman
Copy link
Contributor

tkelman commented Oct 13, 2015

possibly due to JuliaLang/julia#13506 ?

mlubin added a commit that referenced this pull request Oct 13, 2015
access linear constraint from ConstraintRef
@mlubin mlubin merged commit 5e0216c into master Oct 13, 2015
@mlubin mlubin deleted the ml/462 branch October 13, 2015 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants