{"action":"created","comment":{"url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/pulls/comments/109376688","pull_request_review_id":30473377,"id":109376688,"diff_hunk":"@@ -201,14 +216,18 @@ setconstrLB!(m::GurobiMathProgModel, lb) = (m.changed_constr_bounds = true; m.lb\n setconstrUB!(m::GurobiMathProgModel, ub) = (m.changed_constr_bounds = true; m.ub = copy(ub))\n \n getobj(m::GurobiMathProgModel)     = get_dblattrarray( m.inner, \"Obj\", 1, num_vars(m.inner)   )\n-setobj!(m::GurobiMathProgModel, c) = (m.obj=copy(c); set_dblattrarray!(m.inner, \"Obj\", 1, num_vars(m.inner), c))\n+function setobj!(m::GurobiMathProgModel, c)\n+    m.obj = copy(c)\n+    _truncateobj!(m.obj)","path":"src/GurobiSolverInterface.jl","position":40,"original_position":40,"commit_id":"3131c3e08ed969c9478bf85067bf1abb92305efd","original_commit_id":"3131c3e08ed969c9478bf85067bf1abb92305efd","user":{"login":"blegat","id":1048205,"avatar_url":"https://avatars0.githubusercontent.com/u/1048205?v=3","gravatar_id":"","url":"https://api.github.com/users/blegat","html_url":"https://github.com/blegat","followers_url":"https://api.github.com/users/blegat/followers","following_url":"https://api.github.com/users/blegat/following{/other_user}","gists_url":"https://api.github.com/users/blegat/gists{/gist_id}","starred_url":"https://api.github.com/users/blegat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blegat/subscriptions","organizations_url":"https://api.github.com/users/blegat/orgs","repos_url":"https://api.github.com/users/blegat/repos","events_url":"https://api.github.com/users/blegat/events{/privacy}","received_events_url":"https://api.github.com/users/blegat/received_events","type":"User","site_admin":false},"body":"or here","created_at":"2017-04-03T09:47:30Z","updated_at":"2017-04-03T09:47:43Z","html_url":"https://github.com/JuliaOpt/Gurobi.jl/pull/96#discussion_r109376688","pull_request_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/pulls/96","_links":{"self":{"href":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/pulls/comments/109376688"},"html":{"href":"https://github.com/JuliaOpt/Gurobi.jl/pull/96#discussion_r109376688"},"pull_request":{"href":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/pulls/96"}}},"pull_request":{"url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/pulls/96","id":112835142,"html_url":"https://github.com/JuliaOpt/Gurobi.jl/pull/96","diff_url":"https://github.com/JuliaOpt/Gurobi.jl/pull/96.diff","patch_url":"https://github.com/JuliaOpt/Gurobi.jl/pull/96.patch","issue_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/issues/96","number":96,"state":"open","locked":false,"title":"Add warnings when using large coefficients","user":{"login":"odow","id":8177701,"avatar_url":"https://avatars1.githubusercontent.com/u/8177701?v=3","gravatar_id":"","url":"https://api.github.com/users/odow","html_url":"https://github.com/odow","followers_url":"https://api.github.com/users/odow/followers","following_url":"https://api.github.com/users/odow/following{/other_user}","gists_url":"https://api.github.com/users/odow/gists{/gist_id}","starred_url":"https://api.github.com/users/odow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odow/subscriptions","organizations_url":"https://api.github.com/users/odow/orgs","repos_url":"https://api.github.com/users/odow/repos","events_url":"https://api.github.com/users/odow/events{/privacy}","received_events_url":"https://api.github.com/users/odow/received_events","type":"User","site_admin":false},"body":"As [stated by Gurobi](https://groups.google.com/forum/#!topic/gurobi/M_Bzc6RWMhU), \"everything that is larger than 1e+100 is silently converted into 1e+100. For bounds, the value is actually 1e+30. So, every bound value that is larger than 1e+30 (smaller than -1e+30) is truncated to 1e+30 (-1e+30).\"\r\n\r\nThis pull requests introduces a warning rather than silently failing. It is made slightly more complicated by the fact we have to propagate the truncation through the `m.obj` vector we keep around to verify Gurobi stores the correct objective.\r\n\r\nCloses https://github.com/JuliaOpt/Gurobi.jl/issues/94.","created_at":"2017-03-27T20:47:32Z","updated_at":"2017-04-03T09:47:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0096d951fabb866453adf44d872f04937574063f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/pulls/96/commits","review_comments_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/pulls/96/comments","review_comment_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/issues/96/comments","statuses_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/statuses/3131c3e08ed969c9478bf85067bf1abb92305efd","head":{"label":"odow:Coefficients","ref":"Coefficients","sha":"3131c3e08ed969c9478bf85067bf1abb92305efd","user":{"login":"odow","id":8177701,"avatar_url":"https://avatars1.githubusercontent.com/u/8177701?v=3","gravatar_id":"","url":"https://api.github.com/users/odow","html_url":"https://github.com/odow","followers_url":"https://api.github.com/users/odow/followers","following_url":"https://api.github.com/users/odow/following{/other_user}","gists_url":"https://api.github.com/users/odow/gists{/gist_id}","starred_url":"https://api.github.com/users/odow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odow/subscriptions","organizations_url":"https://api.github.com/users/odow/orgs","repos_url":"https://api.github.com/users/odow/repos","events_url":"https://api.github.com/users/odow/events{/privacy}","received_events_url":"https://api.github.com/users/odow/received_events","type":"User","site_admin":false},"repo":{"id":32823678,"name":"Gurobi.jl","full_name":"odow/Gurobi.jl","owner":{"login":"odow","id":8177701,"avatar_url":"https://avatars1.githubusercontent.com/u/8177701?v=3","gravatar_id":"","url":"https://api.github.com/users/odow","html_url":"https://github.com/odow","followers_url":"https://api.github.com/users/odow/followers","following_url":"https://api.github.com/users/odow/following{/other_user}","gists_url":"https://api.github.com/users/odow/gists{/gist_id}","starred_url":"https://api.github.com/users/odow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odow/subscriptions","organizations_url":"https://api.github.com/users/odow/orgs","repos_url":"https://api.github.com/users/odow/repos","events_url":"https://api.github.com/users/odow/events{/privacy}","received_events_url":"https://api.github.com/users/odow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/odow/Gurobi.jl","description":"Julia interface for Gurobi Optimizer","fork":true,"url":"https://api.github.com/repos/odow/Gurobi.jl","forks_url":"https://api.github.com/repos/odow/Gurobi.jl/forks","keys_url":"https://api.github.com/repos/odow/Gurobi.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/odow/Gurobi.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/odow/Gurobi.jl/teams","hooks_url":"https://api.github.com/repos/odow/Gurobi.jl/hooks","issue_events_url":"https://api.github.com/repos/odow/Gurobi.jl/issues/events{/number}","events_url":"https://api.github.com/repos/odow/Gurobi.jl/events","assignees_url":"https://api.github.com/repos/odow/Gurobi.jl/assignees{/user}","branches_url":"https://api.github.com/repos/odow/Gurobi.jl/branches{/branch}","tags_url":"https://api.github.com/repos/odow/Gurobi.jl/tags","blobs_url":"https://api.github.com/repos/odow/Gurobi.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/odow/Gurobi.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/odow/Gurobi.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/odow/Gurobi.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/odow/Gurobi.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/odow/Gurobi.jl/languages","stargazers_url":"https://api.github.com/repos/odow/Gurobi.jl/stargazers","contributors_url":"https://api.github.com/repos/odow/Gurobi.jl/contributors","subscribers_url":"https://api.github.com/repos/odow/Gurobi.jl/subscribers","subscription_url":"https://api.github.com/repos/odow/Gurobi.jl/subscription","commits_url":"https://api.github.com/repos/odow/Gurobi.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/odow/Gurobi.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/odow/Gurobi.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/odow/Gurobi.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/odow/Gurobi.jl/contents/{+path}","compare_url":"https://api.github.com/repos/odow/Gurobi.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/odow/Gurobi.jl/merges","archive_url":"https://api.github.com/repos/odow/Gurobi.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/odow/Gurobi.jl/downloads","issues_url":"https://api.github.com/repos/odow/Gurobi.jl/issues{/number}","pulls_url":"https://api.github.com/repos/odow/Gurobi.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/odow/Gurobi.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/odow/Gurobi.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/odow/Gurobi.jl/labels{/name}","releases_url":"https://api.github.com/repos/odow/Gurobi.jl/releases{/id}","deployments_url":"https://api.github.com/repos/odow/Gurobi.jl/deployments","created_at":"2015-03-24T20:35:54Z","updated_at":"2015-04-12T21:22:46Z","pushed_at":"2017-03-28T19:10:21Z","git_url":"git://github.com/odow/Gurobi.jl.git","ssh_url":"git@github.com:odow/Gurobi.jl.git","clone_url":"https://github.com/odow/Gurobi.jl.git","svn_url":"https://github.com/odow/Gurobi.jl","homepage":"","size":279,"stargazers_count":0,"watchers_count":0,"language":"Julia","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"6d9f03908de8851e08c553b82eee046308cae9b6","user":{"login":"JuliaOpt","id":5667382,"avatar_url":"https://avatars2.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":8544701,"name":"Gurobi.jl","full_name":"JuliaOpt/Gurobi.jl","owner":{"login":"JuliaOpt","id":5667382,"avatar_url":"https://avatars2.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/Gurobi.jl","description":"Julia interface for Gurobi Optimizer","fork":false,"url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl","forks_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/forks","keys_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/teams","hooks_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/hooks","issue_events_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/events","assignees_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/tags","blobs_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/languages","stargazers_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/stargazers","contributors_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/contributors","subscribers_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/subscribers","subscription_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/subscription","commits_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/merges","archive_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/downloads","issues_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/labels{/name}","releases_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/releases{/id}","deployments_url":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/deployments","created_at":"2013-03-03T23:51:39Z","updated_at":"2017-01-10T06:46:41Z","pushed_at":"2017-03-31T05:45:43Z","git_url":"git://github.com/JuliaOpt/Gurobi.jl.git","ssh_url":"git@github.com:JuliaOpt/Gurobi.jl.git","clone_url":"https://github.com/JuliaOpt/Gurobi.jl.git","svn_url":"https://github.com/JuliaOpt/Gurobi.jl","homepage":"http://www.gurobi.com/","size":272,"stargazers_count":23,"watchers_count":23,"language":"Julia","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":15,"forks":26,"open_issues":15,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/pulls/96"},"html":{"href":"https://github.com/JuliaOpt/Gurobi.jl/pull/96"},"issue":{"href":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/issues/96"},"comments":{"href":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/issues/96/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/pulls/96/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/pulls/96/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaOpt/Gurobi.jl/statuses/3131c3e08ed969c9478bf85067bf1abb92305efd"}}}}
{"actor":{"display_login":"blegat"}}