CModel.Bounds Parameters: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:


== Usage Example ==
== Usage Example ==
{{APIComment|Declare a new repository connection class.}}
{{APIComment|Declare a new repository connection class.}}
        Private WithEvents MyRepository As New Repository
  Private WithEvents MyRepository As New Repository
 
 
{{APIComment|Connect to the Synthesis repository.}}
{{APIComment|Connect to the Synthesis repository.}}
        Dim Success As Boolean = False
  Dim Success As Boolean = False
        Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
  Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
 
   
{{APIComment|Get the list of Projects in the connected repository.}}
{{APIComment|Get the model with the numerical ID 15.}}
        Dim ListOfModels() As [[NameIdPair Class|NameIdPair]]
  Dim AModel as cModel
        ListOfModels = MyRepository.GetAllModelsInfo()
  AModel = MyRepository.GetModel(15)
 
   
{{APIComment|Select the ID of the model and retrieve it.}}
{{APIComment|Get the confidence bounds on the parameters of that model.}}
        Dim AModel as cModel
  Dim ModelBoundsParameters() as ParamBoundsValues
        AModel = MyRepository.GetModel(ListOfModels(0).ID)
  ModelBoundsParameters = AModel.Bounds_Parameters
 
   
{{APIComment|Get the Bounds parameters.}}
{{APIComment|Save the lower bound on the first parameter.}}
        Dim ModelBoundsParameters() as [[ParamBoundsValues Class|ParamBoundsValues]]
  Dim lower as double
        ModelBoundsParameters = AModel.Bounds_Parameters
  lower = ModelBoundsParameters.Lower

Revision as of 23:49, 17 April 2014


Returns an array containing bounds on all the model parameters. Use the SetConfidenceLevel method to specify the confidence bound settings.

Syntax

Usage Example

 Declare a new repository connection class. 
 Private WithEvents MyRepository As New Repository
 
 Connect to the Synthesis repository. 
 Dim Success As Boolean = False
 Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
   
 Get the model with the numerical ID 15. 
 Dim AModel as cModel
 AModel = MyRepository.GetModel(15)
   
 Get the confidence bounds on the parameters of that model. 
 Dim ModelBoundsParameters() as ParamBoundsValues
 ModelBoundsParameters = AModel.Bounds_Parameters
   
 Save the lower bound on the first parameter. 
 Dim lower as double
 lower = ModelBoundsParameters.Lower