|
@@ -236,35 +236,38 @@ const getDoptimize = (id) => {
|
|
|
request(params).then((res) => {
|
|
|
console.log('chushihua')
|
|
|
if (res.hasOwnProperty('suid')) {
|
|
|
- suid.value = res.suid;
|
|
|
- youhua.value.algorithm = res.algorithm;
|
|
|
- youhua.value.iout = res.iout;
|
|
|
- youhua.value.irestart = res.irestart;
|
|
|
- youhua.value.ndoe = res.ndoe;
|
|
|
- youhua.value.ns = res.ns;
|
|
|
- youhua.value.nsmax = res.nsmax;
|
|
|
- youhua.value.nslf = res.nslf;
|
|
|
- youhua.value.nsmaxlf = res.nsmaxlf;
|
|
|
- youhua.value.nsmk = res.nsmk;
|
|
|
- youhua.value.nsmaxmk = res.nsmaxmk;
|
|
|
- youhua.value.xtol = res.xtol;
|
|
|
- youhua.value.feasibilitytolreal = res.feasibilitytolreal;
|
|
|
- youhua.value.feasibilitytolsurro = res.feasibilitytolsurro;
|
|
|
- youhua.value.surromod = res.surromod;
|
|
|
- youhua.value.corr = res.corr;
|
|
|
- youhua.value.consttheta = res.consttheta;
|
|
|
- youhua.value.porder = res.porder;
|
|
|
- youhua.value.dcmp = res.dcmp;
|
|
|
- youhua.value.paraopt = res.paraopt;
|
|
|
- youhua.value.regular = res.regular;
|
|
|
- youhua.value.infill = res.infill;
|
|
|
- youhua.value.nparallel = res.nparallel;
|
|
|
- youhua.value.iopt = res.iopt;
|
|
|
- youhua.value.icstr = res.icstr;
|
|
|
- youhua.value.ipopsize = res.ipopsize;
|
|
|
- youhua.value.maxgen = res.maxgen;
|
|
|
- youhua.value.pc = res.pc;
|
|
|
- youhua.value.pm = res.pm;
|
|
|
+ // suid.value = res.suid;
|
|
|
+ // youhua.value.algorithm = res.algorithm;
|
|
|
+ // youhua.value.iout = res.iout;
|
|
|
+ // youhua.value.irestart = res.irestart;
|
|
|
+ // youhua.value.ndoe = res.ndoe;
|
|
|
+ // youhua.value.ns = res.ns;
|
|
|
+ // youhua.value.nsmax = res.nsmax;
|
|
|
+ // youhua.value.nslf = res.nslf;
|
|
|
+ // youhua.value.nsmaxlf = res.nsmaxlf;
|
|
|
+ // youhua.value.nsmk = res.nsmk;
|
|
|
+ // youhua.value.nsmaxmk = res.nsmaxmk;
|
|
|
+ // youhua.value.xtol = res.xtol;
|
|
|
+ // youhua.value.feasibilitytolreal = res.feasibilitytolreal;
|
|
|
+ // youhua.value.feasibilitytolsurro = res.feasibilitytolsurro;
|
|
|
+ // youhua.value.surromod = res.surromod;
|
|
|
+ // youhua.value.corr = res.corr;
|
|
|
+ // youhua.value.consttheta = res.consttheta;
|
|
|
+ // youhua.value.porder = res.porder;
|
|
|
+ // youhua.value.dcmp = res.dcmp;
|
|
|
+ // youhua.value.paraopt = res.paraopt;
|
|
|
+ // youhua.value.regular = res.regular;
|
|
|
+ // youhua.value.infill = res.infill;
|
|
|
+ // youhua.value.nparallel = res.nparallel;
|
|
|
+ // youhua.value.iopt = res.iopt;
|
|
|
+ // youhua.value.icstr = res.icstr;
|
|
|
+ // youhua.value.ipopsize = res.ipopsize;
|
|
|
+ // youhua.value.maxgen = res.maxgen;
|
|
|
+ // youhua.value.pc = res.pc;
|
|
|
+ // youhua.value.pm = res.pm;
|
|
|
+
|
|
|
+ getDoptimizeAssign(res);
|
|
|
+
|
|
|
} else {
|
|
|
}
|
|
|
})
|
|
@@ -273,6 +276,38 @@ const getDoptimize = (id) => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+const getDoptimizeAssign = (data) => {
|
|
|
+ suid.value = data.suid;
|
|
|
+ youhua.value.algorithm = data.algorithm;
|
|
|
+ youhua.value.iout = data.iout;
|
|
|
+ youhua.value.irestart = data.irestart;
|
|
|
+ youhua.value.ndoe = data.ndoe;
|
|
|
+ youhua.value.ns = data.ns;
|
|
|
+ youhua.value.nsmax = data.nsmax;
|
|
|
+ youhua.value.nslf = data.nslf;
|
|
|
+ youhua.value.nsmaxlf = data.nsmaxlf;
|
|
|
+ youhua.value.nsmk = data.nsmk;
|
|
|
+ youhua.value.nsmaxmk = data.nsmaxmk;
|
|
|
+ youhua.value.xtol = data.xtol;
|
|
|
+ youhua.value.feasibilitytolreal = data.feasibilitytolreal;
|
|
|
+ youhua.value.feasibilitytolsurro = data.feasibilitytolsurro;
|
|
|
+ youhua.value.surromod = data.surromod;
|
|
|
+ youhua.value.corr = data.corr;
|
|
|
+ youhua.value.consttheta = data.consttheta;
|
|
|
+ youhua.value.porder = data.porder;
|
|
|
+ youhua.value.dcmp = data.dcmp;
|
|
|
+ youhua.value.paraopt = data.paraopt;
|
|
|
+ youhua.value.regular = data.regular;
|
|
|
+ youhua.value.infill = data.infill;
|
|
|
+ youhua.value.nparallel = data.nparallel;
|
|
|
+ youhua.value.iopt = data.iopt;
|
|
|
+ youhua.value.icstr = data.icstr;
|
|
|
+ youhua.value.ipopsize = data.ipopsize;
|
|
|
+ youhua.value.maxgen = data.maxgen;
|
|
|
+ youhua.value.pc = data.pc;
|
|
|
+ youhua.value.pm = data.pm;
|
|
|
+}
|
|
|
+
|
|
|
//代理优化器,添加保存
|
|
|
const getaddDsave = () => {
|
|
|
const params = {
|
|
@@ -321,6 +356,7 @@ const getaddDsave = () => {
|
|
|
}
|
|
|
defineExpose({
|
|
|
getDoptimize,
|
|
|
+ getDoptimizeAssign,
|
|
|
getaddDsave
|
|
|
});
|
|
|
</script>
|