How can I code MBC constraints?

조회 수: 4 (최근 30일)
Brian Tilker
Brian Tilker 2019년 1월 25일
답변: Ian Noell 2019년 2월 6일
Where can I find documentation on creating code to setup MBC constraints? I have not found a way to import constraints from another file.

답변 (1개)

Ian Noell
Ian Noell 2019년 2월 6일
Hi Brian,
Please see the following example code.
web(fullfile(docroot, 'mbc/mbc_gs/gasoline-case-study-design-of-experiment.html'))
The basic idea is to load the other project and then set the design constraint. Note, that the inputs in the constraint you are importing must match the input order of the design inputs. If the order does not match, you can use mbcdoe.designconstraint.MatchInputs.
Hope that helps,
Ian
Create Space-Filling Design
CreateDesign defaults to creating a design for the outer (global) level.
sfDesign = CreateDesign(TP, ...
'Type', 'Latin Hypercube Sampling',...
'Name', 'Space Filling');
Add Boundary Constraints
Load boundary constraints from another project file and add to design.
otherProject = mbcmodel.LoadProject( [matlabroot,'\toolbox\mbc\mbctraining\Gasoline_project.mat']);
boundaryConstraints = otherProject.Testplans(1).BoundaryModel('global');
% Design constraints are specified as an array of
% mbcdoe.designconstraint objects.
sfDesign.Constraints = boundaryConstraints;

카테고리

Help CenterFile Exchange에서 Design Creation에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by