{"action":"created","comment":{"url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/pulls/comments/37988139","id":37988139,"diff_hunk":"@@ -65,6 +65,21 @@ facts(\"[variable] get and set bounds\") do\n     @fact getUpper(fixedvar) --> 5\n end\n \n+facts(\"[variable] get and set values\") do\n+    m = Model()\n+    @defVar(m, x[1:3])\n+    x0 = [1:3]\n+    setValue(x.innerArray, x0)","path":"test/variable.jl","position":8,"original_position":8,"commit_id":"c72f31ce49956dd9c70220af428261c37d1f01ac","original_commit_id":"c72f31ce49956dd9c70220af428261c37d1f01ac","user":{"login":"mlubin","id":1733683,"avatar_url":"https://avatars.githubusercontent.com/u/1733683?v=3","gravatar_id":"","url":"https://api.github.com/users/mlubin","html_url":"https://github.com/mlubin","followers_url":"https://api.github.com/users/mlubin/followers","following_url":"https://api.github.com/users/mlubin/following{/other_user}","gists_url":"https://api.github.com/users/mlubin/gists{/gist_id}","starred_url":"https://api.github.com/users/mlubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlubin/subscriptions","organizations_url":"https://api.github.com/users/mlubin/orgs","repos_url":"https://api.github.com/users/mlubin/repos","events_url":"https://api.github.com/users/mlubin/events{/privacy}","received_events_url":"https://api.github.com/users/mlubin/received_events","type":"User","site_admin":false},"body":"Shouldn't this be ``setValue(x, x0)``?","created_at":"2015-08-26T14:28:41Z","updated_at":"2015-08-26T14:28:41Z","html_url":"https://github.com/JuliaOpt/JuMP.jl/pull/540#discussion_r37988139","pull_request_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/pulls/540","_links":{"self":{"href":"https://api.github.com/repos/JuliaOpt/JuMP.jl/pulls/comments/37988139"},"html":{"href":"https://github.com/JuliaOpt/JuMP.jl/pull/540#discussion_r37988139"},"pull_request":{"href":"https://api.github.com/repos/JuliaOpt/JuMP.jl/pulls/540"}}},"pull_request":{"url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/pulls/540","id":42873720,"html_url":"https://github.com/JuliaOpt/JuMP.jl/pull/540","diff_url":"https://github.com/JuliaOpt/JuMP.jl/pull/540.diff","patch_url":"https://github.com/JuliaOpt/JuMP.jl/pull/540.patch","issue_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/issues/540","number":540,"state":"open","locked":false,"title":"Extend setvalue to JuMPArrays","user":{"login":"anriseth","id":5601805,"avatar_url":"https://avatars.githubusercontent.com/u/5601805?v=3","gravatar_id":"","url":"https://api.github.com/users/anriseth","html_url":"https://github.com/anriseth","followers_url":"https://api.github.com/users/anriseth/followers","following_url":"https://api.github.com/users/anriseth/following{/other_user}","gists_url":"https://api.github.com/users/anriseth/gists{/gist_id}","starred_url":"https://api.github.com/users/anriseth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anriseth/subscriptions","organizations_url":"https://api.github.com/users/anriseth/orgs","repos_url":"https://api.github.com/users/anriseth/repos","events_url":"https://api.github.com/users/anriseth/events{/privacy}","received_events_url":"https://api.github.com/users/anriseth/received_events","type":"User","site_admin":false},"body":"This commit enables us to run\r\n```julia\r\n@defVar(m, x[1:n])\r\nsetValue(x, x0)\r\n```\r\nfor an array of numbers, x0.\r\n\r\nHope I put the code in the right place?\r\n\r\n","created_at":"2015-08-19T22:49:56Z","updated_at":"2015-08-26T14:28:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6165510b8e4e1d0fc679105133f5b9f693e60d80","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/pulls/540/commits","review_comments_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/pulls/540/comments","review_comment_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/issues/540/comments","statuses_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/statuses/c72f31ce49956dd9c70220af428261c37d1f01ac","head":{"label":"anriseth:anriseth-setvalue-vector","ref":"anriseth-setvalue-vector","sha":"c72f31ce49956dd9c70220af428261c37d1f01ac","user":{"login":"anriseth","id":5601805,"avatar_url":"https://avatars.githubusercontent.com/u/5601805?v=3","gravatar_id":"","url":"https://api.github.com/users/anriseth","html_url":"https://github.com/anriseth","followers_url":"https://api.github.com/users/anriseth/followers","following_url":"https://api.github.com/users/anriseth/following{/other_user}","gists_url":"https://api.github.com/users/anriseth/gists{/gist_id}","starred_url":"https://api.github.com/users/anriseth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anriseth/subscriptions","organizations_url":"https://api.github.com/users/anriseth/orgs","repos_url":"https://api.github.com/users/anriseth/repos","events_url":"https://api.github.com/users/anriseth/events{/privacy}","received_events_url":"https://api.github.com/users/anriseth/received_events","type":"User","site_admin":false},"repo":{"id":40296116,"name":"JuMP.jl","full_name":"anriseth/JuMP.jl","owner":{"login":"anriseth","id":5601805,"avatar_url":"https://avatars.githubusercontent.com/u/5601805?v=3","gravatar_id":"","url":"https://api.github.com/users/anriseth","html_url":"https://github.com/anriseth","followers_url":"https://api.github.com/users/anriseth/followers","following_url":"https://api.github.com/users/anriseth/following{/other_user}","gists_url":"https://api.github.com/users/anriseth/gists{/gist_id}","starred_url":"https://api.github.com/users/anriseth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anriseth/subscriptions","organizations_url":"https://api.github.com/users/anriseth/orgs","repos_url":"https://api.github.com/users/anriseth/repos","events_url":"https://api.github.com/users/anriseth/events{/privacy}","received_events_url":"https://api.github.com/users/anriseth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anriseth/JuMP.jl","description":"Modeling language for Mathematical Programming (linear, mixed-integer, conic, nonlinear)","fork":true,"url":"https://api.github.com/repos/anriseth/JuMP.jl","forks_url":"https://api.github.com/repos/anriseth/JuMP.jl/forks","keys_url":"https://api.github.com/repos/anriseth/JuMP.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anriseth/JuMP.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anriseth/JuMP.jl/teams","hooks_url":"https://api.github.com/repos/anriseth/JuMP.jl/hooks","issue_events_url":"https://api.github.com/repos/anriseth/JuMP.jl/issues/events{/number}","events_url":"https://api.github.com/repos/anriseth/JuMP.jl/events","assignees_url":"https://api.github.com/repos/anriseth/JuMP.jl/assignees{/user}","branches_url":"https://api.github.com/repos/anriseth/JuMP.jl/branches{/branch}","tags_url":"https://api.github.com/repos/anriseth/JuMP.jl/tags","blobs_url":"https://api.github.com/repos/anriseth/JuMP.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anriseth/JuMP.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anriseth/JuMP.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/anriseth/JuMP.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anriseth/JuMP.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/anriseth/JuMP.jl/languages","stargazers_url":"https://api.github.com/repos/anriseth/JuMP.jl/stargazers","contributors_url":"https://api.github.com/repos/anriseth/JuMP.jl/contributors","subscribers_url":"https://api.github.com/repos/anriseth/JuMP.jl/subscribers","subscription_url":"https://api.github.com/repos/anriseth/JuMP.jl/subscription","commits_url":"https://api.github.com/repos/anriseth/JuMP.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/anriseth/JuMP.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/anriseth/JuMP.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/anriseth/JuMP.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/anriseth/JuMP.jl/contents/{+path}","compare_url":"https://api.github.com/repos/anriseth/JuMP.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anriseth/JuMP.jl/merges","archive_url":"https://api.github.com/repos/anriseth/JuMP.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anriseth/JuMP.jl/downloads","issues_url":"https://api.github.com/repos/anriseth/JuMP.jl/issues{/number}","pulls_url":"https://api.github.com/repos/anriseth/JuMP.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/anriseth/JuMP.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/anriseth/JuMP.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anriseth/JuMP.jl/labels{/name}","releases_url":"https://api.github.com/repos/anriseth/JuMP.jl/releases{/id}","created_at":"2015-08-06T09:19:55Z","updated_at":"2015-08-06T09:19:56Z","pushed_at":"2015-08-26T14:23:30Z","git_url":"git://github.com/anriseth/JuMP.jl.git","ssh_url":"git@github.com:anriseth/JuMP.jl.git","clone_url":"https://github.com/anriseth/JuMP.jl.git","svn_url":"https://github.com/anriseth/JuMP.jl","homepage":"","size":3393,"stargazers_count":0,"watchers_count":0,"language":"Julia","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JuliaOpt:master","ref":"master","sha":"562862ad0118985abf63227d8f9dd3005756767e","user":{"login":"JuliaOpt","id":5667382,"avatar_url":"https://avatars.githubusercontent.com/u/5667382?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaOpt","html_url":"https://github.com/JuliaOpt","followers_url":"https://api.github.com/users/JuliaOpt/followers","following_url":"https://api.github.com/users/JuliaOpt/following{/other_user}","gists_url":"https://api.github.com/users/JuliaOpt/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaOpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaOpt/subscriptions","organizations_url":"https://api.github.com/users/JuliaOpt/orgs","repos_url":"https://api.github.com/users/JuliaOpt/repos","events_url":"https://api.github.com/users/JuliaOpt/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaOpt/received_events","type":"Organization","site_admin":false},"repo":{"id":6150069,"name":"JuMP.jl","full_name":"JuliaOpt/JuMP.jl","owner":{"login":"JuliaOpt","id":5667382,"avatar_url":"https://avatars.githubusercontent.com/u/5667382?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaOpt","html_url":"https://github.com/JuliaOpt","followers_url":"https://api.github.com/users/JuliaOpt/followers","following_url":"https://api.github.com/users/JuliaOpt/following{/other_user}","gists_url":"https://api.github.com/users/JuliaOpt/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaOpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaOpt/subscriptions","organizations_url":"https://api.github.com/users/JuliaOpt/orgs","repos_url":"https://api.github.com/users/JuliaOpt/repos","events_url":"https://api.github.com/users/JuliaOpt/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaOpt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaOpt/JuMP.jl","description":"Modeling language for Mathematical Programming (linear, mixed-integer, conic, nonlinear)","fork":false,"url":"https://api.github.com/repos/JuliaOpt/JuMP.jl","forks_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/forks","keys_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/teams","hooks_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/hooks","issue_events_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/events","assignees_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/tags","blobs_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/languages","stargazers_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/stargazers","contributors_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/contributors","subscribers_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/subscribers","subscription_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/subscription","commits_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/merges","archive_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/downloads","issues_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/labels{/name}","releases_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/releases{/id}","created_at":"2012-10-10T00:34:45Z","updated_at":"2015-08-18T13:25:51Z","pushed_at":"2015-08-26T14:23:30Z","git_url":"git://github.com/JuliaOpt/JuMP.jl.git","ssh_url":"git@github.com:JuliaOpt/JuMP.jl.git","clone_url":"https://github.com/JuliaOpt/JuMP.jl.git","svn_url":"https://github.com/JuliaOpt/JuMP.jl","homepage":"","size":9799,"stargazers_count":174,"watchers_count":174,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":58,"forks":44,"open_issues":58,"watchers":174,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaOpt/JuMP.jl/pulls/540"},"html":{"href":"https://github.com/JuliaOpt/JuMP.jl/pull/540"},"issue":{"href":"https://api.github.com/repos/JuliaOpt/JuMP.jl/issues/540"},"comments":{"href":"https://api.github.com/repos/JuliaOpt/JuMP.jl/issues/540/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaOpt/JuMP.jl/pulls/540/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaOpt/JuMP.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaOpt/JuMP.jl/pulls/540/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaOpt/JuMP.jl/statuses/c72f31ce49956dd9c70220af428261c37d1f01ac"}}}}