Can I solve only selected Workbench Design Points? (DPs)
M
Member, Employee Posts: 241
✭✭✭✭
Yes, this is possible using whatever set up you have for the DP solve (RSM, local, etc). You just need to generate a list of the DPs you want to solve and use UpdateAllDesignPoints
the pointing to the list.
The script below is to be run in the Workbench scripting window and will ask for a comma separated list (tuple actually, but let's not get all technical) of DPs to solve. Remember the first DP is number 0.
Note the model has to be saved, in this case I save 'bob' to the temp directory.
import tempfile, os solveCmd = '''/Parameters/DesignPoint:X''' saveName = os.path.join(tempfile.gettempdir(),'bob.wbpj') solveList = [] dp_list = input('List the dps you want to solve, separate with commas: ') dp_list = list(dp_list) for dp in dp_list: solveList.append(solveCmd.replace('X',str(dp))) Save(FilePath = saveName, Overwrite=True) backgroundSession1 = UpdateAllDesignPoints(DesignPoints=solveList)
0