{"action":"created","comment":{"url":"https://api.github.com/repos/eddelbuettel/rcppde/pulls/comments/52111750","id":52111750,"diff_hunk":"@@ -103,6 +107,18 @@ void devol(double VTR, double f_weight, double f_cross, int i_bs_flag,\n             t_tmpP = ta_oldP.col(i);            // t_tmpP is the vector to mutate and eventually select\n \n             permute(ia_urn2.memptr(), urn_depth, i_NP, i, ia_urntmp.memptr()); // Pick 4 random and distinct \n+            \n+            //Trigger JADE algorithm when d_c <> 0 (randomize cross-over and weight coefficient)\n+            if(d_c>0){\n+              f_cross = Rcpp::as<double>(rnorm(1, mean_cross, 0.1));\n+              f_cross = f_cross > 1.0 ? 1 : f_cross;\n+              f_cross = f_cross < 0.0 ? 0 : f_cross;\n+              do{\n+                f_weight = Rcpp::as<double>(rcauchy(1, mean_weight, 0.1));\n+                f_weight = f_weight > 1.0 ? 1.0 : f_weight;\n+              } while (f_weight <= 0.0);\n+            }\n+            ","path":"src/devol.cpp","position":38,"original_position":38,"commit_id":"b9641fc365d9f8a4e1576ae8ac34abc3c2e022be","original_commit_id":"b9641fc365d9f8a4e1576ae8ac34abc3c2e022be","user":{"login":"eddelbuettel","id":673121,"avatar_url":"https://avatars.githubusercontent.com/u/673121?v=3","gravatar_id":"","url":"https://api.github.com/users/eddelbuettel","html_url":"https://github.com/eddelbuettel","followers_url":"https://api.github.com/users/eddelbuettel/followers","following_url":"https://api.github.com/users/eddelbuettel/following{/other_user}","gists_url":"https://api.github.com/users/eddelbuettel/gists{/gist_id}","starred_url":"https://api.github.com/users/eddelbuettel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddelbuettel/subscriptions","organizations_url":"https://api.github.com/users/eddelbuettel/orgs","repos_url":"https://api.github.com/users/eddelbuettel/repos","events_url":"https://api.github.com/users/eddelbuettel/events{/privacy}","received_events_url":"https://api.github.com/users/eddelbuettel/received_events","type":"User","site_admin":false},"body":":+1:\r\n\r\nContinuous Integration and unit tests are very valuable in catching these things,","created_at":"2016-02-07T02:59:46Z","updated_at":"2016-02-07T02:59:46Z","html_url":"https://github.com/eddelbuettel/rcppde/pull/6#discussion_r52111750","pull_request_url":"https://api.github.com/repos/eddelbuettel/rcppde/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/eddelbuettel/rcppde/pulls/comments/52111750"},"html":{"href":"https://github.com/eddelbuettel/rcppde/pull/6#discussion_r52111750"},"pull_request":{"href":"https://api.github.com/repos/eddelbuettel/rcppde/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/eddelbuettel/rcppde/pulls/6","id":58535142,"html_url":"https://github.com/eddelbuettel/rcppde/pull/6","diff_url":"https://github.com/eddelbuettel/rcppde/pull/6.diff","patch_url":"https://github.com/eddelbuettel/rcppde/pull/6.patch","issue_url":"https://api.github.com/repos/eddelbuettel/rcppde/issues/6","number":6,"state":"open","locked":false,"title":"Update to catch up with DEOptim","user":{"login":"Ecthilisyk","id":16890571,"avatar_url":"https://avatars.githubusercontent.com/u/16890571?v=3","gravatar_id":"","url":"https://api.github.com/users/Ecthilisyk","html_url":"https://github.com/Ecthilisyk","followers_url":"https://api.github.com/users/Ecthilisyk/followers","following_url":"https://api.github.com/users/Ecthilisyk/following{/other_user}","gists_url":"https://api.github.com/users/Ecthilisyk/gists{/gist_id}","starred_url":"https://api.github.com/users/Ecthilisyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ecthilisyk/subscriptions","organizations_url":"https://api.github.com/users/Ecthilisyk/orgs","repos_url":"https://api.github.com/users/Ecthilisyk/repos","events_url":"https://api.github.com/users/Ecthilisyk/events{/privacy}","received_events_url":"https://api.github.com/users/Ecthilisyk/received_events","type":"User","site_admin":false},"body":"Add functionality to randomize cross-over probability and step-size coefficient in each mutation","created_at":"2016-02-07T00:50:17Z","updated_at":"2016-02-07T02:59:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9f7311eab25e0bf18570cf45626c29147461bcc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eddelbuettel/rcppde/pulls/6/commits","review_comments_url":"https://api.github.com/repos/eddelbuettel/rcppde/pulls/6/comments","review_comment_url":"https://api.github.com/repos/eddelbuettel/rcppde/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eddelbuettel/rcppde/issues/6/comments","statuses_url":"https://api.github.com/repos/eddelbuettel/rcppde/statuses/b9641fc365d9f8a4e1576ae8ac34abc3c2e022be","head":{"label":"Ecthilisyk:Update_DEOptim_Yi","ref":"Update_DEOptim_Yi","sha":"b9641fc365d9f8a4e1576ae8ac34abc3c2e022be","user":{"login":"Ecthilisyk","id":16890571,"avatar_url":"https://avatars.githubusercontent.com/u/16890571?v=3","gravatar_id":"","url":"https://api.github.com/users/Ecthilisyk","html_url":"https://github.com/Ecthilisyk","followers_url":"https://api.github.com/users/Ecthilisyk/followers","following_url":"https://api.github.com/users/Ecthilisyk/following{/other_user}","gists_url":"https://api.github.com/users/Ecthilisyk/gists{/gist_id}","starred_url":"https://api.github.com/users/Ecthilisyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ecthilisyk/subscriptions","organizations_url":"https://api.github.com/users/Ecthilisyk/orgs","repos_url":"https://api.github.com/users/Ecthilisyk/repos","events_url":"https://api.github.com/users/Ecthilisyk/events{/privacy}","received_events_url":"https://api.github.com/users/Ecthilisyk/received_events","type":"User","site_admin":false},"repo":{"id":51228720,"name":"rcppde-1","full_name":"Ecthilisyk/rcppde-1","owner":{"login":"Ecthilisyk","id":16890571,"avatar_url":"https://avatars.githubusercontent.com/u/16890571?v=3","gravatar_id":"","url":"https://api.github.com/users/Ecthilisyk","html_url":"https://github.com/Ecthilisyk","followers_url":"https://api.github.com/users/Ecthilisyk/followers","following_url":"https://api.github.com/users/Ecthilisyk/following{/other_user}","gists_url":"https://api.github.com/users/Ecthilisyk/gists{/gist_id}","starred_url":"https://api.github.com/users/Ecthilisyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ecthilisyk/subscriptions","organizations_url":"https://api.github.com/users/Ecthilisyk/orgs","repos_url":"https://api.github.com/users/Ecthilisyk/repos","events_url":"https://api.github.com/users/Ecthilisyk/events{/privacy}","received_events_url":"https://api.github.com/users/Ecthilisyk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ecthilisyk/rcppde-1","description":"Rcpp port of Differential Evolution","fork":true,"url":"https://api.github.com/repos/Ecthilisyk/rcppde-1","forks_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/forks","keys_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/teams","hooks_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/hooks","issue_events_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/issues/events{/number}","events_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/events","assignees_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/assignees{/user}","branches_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/branches{/branch}","tags_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/tags","blobs_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/statuses/{sha}","languages_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/languages","stargazers_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/stargazers","contributors_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/contributors","subscribers_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/subscribers","subscription_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/subscription","commits_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/contents/{+path}","compare_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/merges","archive_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/downloads","issues_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/issues{/number}","pulls_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/pulls{/number}","milestones_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/milestones{/number}","notifications_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/labels{/name}","releases_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/releases{/id}","deployments_url":"https://api.github.com/repos/Ecthilisyk/rcppde-1/deployments","created_at":"2016-02-07T00:17:51Z","updated_at":"2016-02-07T00:17:51Z","pushed_at":"2016-02-07T02:50:46Z","git_url":"git://github.com/Ecthilisyk/rcppde-1.git","ssh_url":"git@github.com:Ecthilisyk/rcppde-1.git","clone_url":"https://github.com/Ecthilisyk/rcppde-1.git","svn_url":"https://github.com/Ecthilisyk/rcppde-1","homepage":null,"size":862,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"eddelbuettel:master","ref":"master","sha":"8998c8586d98de627cd6d4e3079377006ac688f0","user":{"login":"eddelbuettel","id":673121,"avatar_url":"https://avatars.githubusercontent.com/u/673121?v=3","gravatar_id":"","url":"https://api.github.com/users/eddelbuettel","html_url":"https://github.com/eddelbuettel","followers_url":"https://api.github.com/users/eddelbuettel/followers","following_url":"https://api.github.com/users/eddelbuettel/following{/other_user}","gists_url":"https://api.github.com/users/eddelbuettel/gists{/gist_id}","starred_url":"https://api.github.com/users/eddelbuettel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddelbuettel/subscriptions","organizations_url":"https://api.github.com/users/eddelbuettel/orgs","repos_url":"https://api.github.com/users/eddelbuettel/repos","events_url":"https://api.github.com/users/eddelbuettel/events{/privacy}","received_events_url":"https://api.github.com/users/eddelbuettel/received_events","type":"User","site_admin":false},"repo":{"id":15125806,"name":"rcppde","full_name":"eddelbuettel/rcppde","owner":{"login":"eddelbuettel","id":673121,"avatar_url":"https://avatars.githubusercontent.com/u/673121?v=3","gravatar_id":"","url":"https://api.github.com/users/eddelbuettel","html_url":"https://github.com/eddelbuettel","followers_url":"https://api.github.com/users/eddelbuettel/followers","following_url":"https://api.github.com/users/eddelbuettel/following{/other_user}","gists_url":"https://api.github.com/users/eddelbuettel/gists{/gist_id}","starred_url":"https://api.github.com/users/eddelbuettel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddelbuettel/subscriptions","organizations_url":"https://api.github.com/users/eddelbuettel/orgs","repos_url":"https://api.github.com/users/eddelbuettel/repos","events_url":"https://api.github.com/users/eddelbuettel/events{/privacy}","received_events_url":"https://api.github.com/users/eddelbuettel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eddelbuettel/rcppde","description":"Rcpp port of Differential Evolution","fork":false,"url":"https://api.github.com/repos/eddelbuettel/rcppde","forks_url":"https://api.github.com/repos/eddelbuettel/rcppde/forks","keys_url":"https://api.github.com/repos/eddelbuettel/rcppde/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eddelbuettel/rcppde/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eddelbuettel/rcppde/teams","hooks_url":"https://api.github.com/repos/eddelbuettel/rcppde/hooks","issue_events_url":"https://api.github.com/repos/eddelbuettel/rcppde/issues/events{/number}","events_url":"https://api.github.com/repos/eddelbuettel/rcppde/events","assignees_url":"https://api.github.com/repos/eddelbuettel/rcppde/assignees{/user}","branches_url":"https://api.github.com/repos/eddelbuettel/rcppde/branches{/branch}","tags_url":"https://api.github.com/repos/eddelbuettel/rcppde/tags","blobs_url":"https://api.github.com/repos/eddelbuettel/rcppde/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eddelbuettel/rcppde/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eddelbuettel/rcppde/git/refs{/sha}","trees_url":"https://api.github.com/repos/eddelbuettel/rcppde/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eddelbuettel/rcppde/statuses/{sha}","languages_url":"https://api.github.com/repos/eddelbuettel/rcppde/languages","stargazers_url":"https://api.github.com/repos/eddelbuettel/rcppde/stargazers","contributors_url":"https://api.github.com/repos/eddelbuettel/rcppde/contributors","subscribers_url":"https://api.github.com/repos/eddelbuettel/rcppde/subscribers","subscription_url":"https://api.github.com/repos/eddelbuettel/rcppde/subscription","commits_url":"https://api.github.com/repos/eddelbuettel/rcppde/commits{/sha}","git_commits_url":"https://api.github.com/repos/eddelbuettel/rcppde/git/commits{/sha}","comments_url":"https://api.github.com/repos/eddelbuettel/rcppde/comments{/number}","issue_comment_url":"https://api.github.com/repos/eddelbuettel/rcppde/issues/comments{/number}","contents_url":"https://api.github.com/repos/eddelbuettel/rcppde/contents/{+path}","compare_url":"https://api.github.com/repos/eddelbuettel/rcppde/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eddelbuettel/rcppde/merges","archive_url":"https://api.github.com/repos/eddelbuettel/rcppde/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eddelbuettel/rcppde/downloads","issues_url":"https://api.github.com/repos/eddelbuettel/rcppde/issues{/number}","pulls_url":"https://api.github.com/repos/eddelbuettel/rcppde/pulls{/number}","milestones_url":"https://api.github.com/repos/eddelbuettel/rcppde/milestones{/number}","notifications_url":"https://api.github.com/repos/eddelbuettel/rcppde/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eddelbuettel/rcppde/labels{/name}","releases_url":"https://api.github.com/repos/eddelbuettel/rcppde/releases{/id}","deployments_url":"https://api.github.com/repos/eddelbuettel/rcppde/deployments","created_at":"2013-12-12T03:12:14Z","updated_at":"2016-02-03T03:32:32Z","pushed_at":"2016-02-07T02:50:46Z","git_url":"git://github.com/eddelbuettel/rcppde.git","ssh_url":"git@github.com:eddelbuettel/rcppde.git","clone_url":"https://github.com/eddelbuettel/rcppde.git","svn_url":"https://github.com/eddelbuettel/rcppde","homepage":null,"size":851,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eddelbuettel/rcppde/pulls/6"},"html":{"href":"https://github.com/eddelbuettel/rcppde/pull/6"},"issue":{"href":"https://api.github.com/repos/eddelbuettel/rcppde/issues/6"},"comments":{"href":"https://api.github.com/repos/eddelbuettel/rcppde/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/eddelbuettel/rcppde/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/eddelbuettel/rcppde/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eddelbuettel/rcppde/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/eddelbuettel/rcppde/statuses/b9641fc365d9f8a4e1576ae8ac34abc3c2e022be"}}}}