{"action":"opened","issue":{"url":"https://api.github.com/repos/jenetics/jenetics/issues/59","labels_url":"https://api.github.com/repos/jenetics/jenetics/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/jenetics/jenetics/issues/59/comments","events_url":"https://api.github.com/repos/jenetics/jenetics/issues/59/events","html_url":"https://github.com/jenetics/jenetics/issues/59","id":103417459,"number":59,"title":"Problem Transformation","user":{"login":"wangxiangtao","id":6140162,"avatar_url":"https://avatars.githubusercontent.com/u/6140162?v=3","gravatar_id":"","url":"https://api.github.com/users/wangxiangtao","html_url":"https://github.com/wangxiangtao","followers_url":"https://api.github.com/users/wangxiangtao/followers","following_url":"https://api.github.com/users/wangxiangtao/following{/other_user}","gists_url":"https://api.github.com/users/wangxiangtao/gists{/gist_id}","starred_url":"https://api.github.com/users/wangxiangtao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangxiangtao/subscriptions","organizations_url":"https://api.github.com/users/wangxiangtao/orgs","repos_url":"https://api.github.com/users/wangxiangtao/repos","events_url":"https://api.github.com/users/wangxiangtao/events{/privacy}","received_events_url":"https://api.github.com/users/wangxiangtao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-27T03:20:47Z","updated_at":"2015-08-27T03:20:47Z","closed_at":null,"body":"Hi , \r\n\r\nI have a problem that think can use GA to solve it, but don't know how to transform the problem via Jenetics. \r\n\r\nSuppose I have 5 Ads and want to display them on 5 different websites within 24 hours with a limited cost 300$.  (assume 15$ per hour)\r\n\r\nI already have a fitness function to predict number of user clicks and want to maximise it via GA.  \r\nThe idea is try different strategy of the AD distribution to get the maximum user clicks \r\n\r\n<img width=\"955\" alt=\"screen shot 2015-08-27 at 11 01 27 am\" src=\"https://cloud.githubusercontent.com/assets/6140162/9511639/4b1f88f6-4cab-11e5-95f4-4cef4a844cb1.png\">\r\n  \r\nThere are several constrains that I do not know how to use Jenetics to add. \r\n1,  for each website.   the end time should bigger than start time\r\n2,  (the summed during time from 5 website * 15$ per hour)  < 300$\r\n3,  All the 5 ads should be displayed on 5 website.  \r\n\r\nSo it is actually a simple problem but have many constrains.   Basically i want to set 15 genes (3 genes per website,  include starttime ,endtime ,and number of AD )  there are some dependency between genes in one chromosome. \r\n\r\nAppreciate if can explain how to use Jenetics to do it ? \r\nThanks\r\n\r\n  \r\n "}}