Closed canhuaLiu closed 3 years ago
规模不够大,multiprocessing开了并行不但没效果,可能反而更慢。
规模不够大,multiprocessing开了并行不但没效果,可能反而更慢。
我想问一下,决策变量是X,中间变量U和A是由X决定的,然后我要求目标函数Y=f(U),同时有限制条件A<=a,a已知。这种虽然目标函数是单目标,但是中间变量有约束,在geatpy中该怎么处理啊。
希望您能解答一下我的疑问, 由决策变量生成的中间变量h,目标函数是h的函数,我想让淘汰h<0的个体,这样去约束有问题吗?还是我得用适应度函数去淘汰h<0的值。因为我发现我用这个约束,在下一代还是会出现使得h<0的个体
lchdlut
***@***.***
Signature is customized by Netease Mail Master
在2021年05月13日 09:33,geatpy 写道:
规模不够大,multiprocessing开了并行不但没效果,可能反而更慢。
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
@.***": "http://schema.org",
@.***": "EmailMessage",
"potentialAction": {
@.***": "ViewAction",
"target": "https://github.com/geatpy-dev/geatpy/issues/186#issuecomment-840220226",
"url": "https://github.com/geatpy-dev/geatpy/issues/186#issuecomment-840220226",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
@.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
这个最好还是去multiprocessing那边发个issue问一下。
Originally posted by @geatpy-dev in https://github.com/geatpy-dev/geatpy/issues/178#issuecomment-786481700