Main Content

MatchInputs

Match design constraint inputs

Description

C = MatchInputs(Cin,DesignInputs) matches DesignInputs and inputs in C.

example

C = MatchInputs(Cin,DesignInputs,Mapping) matches inputs. Mapping defines the relationship between the inputs in C and DesignInputs.

Examples

collapse all

A design constraint does not have required inputs EXH_RET and INT_ADV. Use MatchInputs to match the constraint inputs to the design inputs.

c = BoundaryModel(p.Testplans,'all')
c = 
Star(N-3.5e+003,L-0.54)

originalInputs=c.Inputs
originalInputs =
   SPEED (N) [rpm] [500,6000]
   LOAD (L) [%] [0.06,0.95]
   
designInputs = Design.Inputs
designInputs =
   SPEED (N) [rpm] [500,6000]
   LOAD (L) [%] [0.06,0.95]
   EXH_RET (ECP) [DegCrank] [-5,50]
   INT_ADV (ICP) [DegCrank] [-5,50]
   
c2=MatchInputs(c,designInputs,[1 2]);
newInputs=c2.Inputs
newInputs =
   SPEED (N) [rpm] [500,6000]
   LOAD (L) [%] [0.06,0.95]
   EXH_RET (ECP) [DegCrank] [-5,50]
   INT_ADV (ICP) [DegCrank] [-5,50] 

Input Arguments

collapse all

Matched mbcmodel.designconstraint design constraint object.

mbcdoe.design design input objects.

Defines the relationship between the inputs in Cin and DesignInputs.

Output Arguments

collapse all

mbcmodel.designconstraint design constraint object matched to design inputs.

Version History

Introduced in R2008a