Main Content

explore

Class: OptimizationResult

Explore fixed-point implementations found during optimization process

Syntax

explore(result)
solution = explore(result)
solution = explore(result, n)
solution = explore(result, n, i)

Description

explore(result) opens the Simulation Data Inspector with logging data displayed for the OptimizationResult object specified by result.

solution = explore(result) opens the Simulation Data Inspector and returns an OptimizationSolution object, solution.

solution = explore(result, n)returns the nth OptimizationSolution object contained in result.

solution = explore(result, n, i)returns the nth OptimizationSolution object, using the ith simulation scenario contained in result.

Input Arguments

expand all

OptimizationResult object to explore.

If the optimization finds a feasible solution, the vector of OptimizationSolution objects contained in the result object is sorted by cost, with the lowest cost (most optimal) solution as the first element of the vector. If the optimization does not find a feasible solution, the vector is sorted by maximum difference from the original design.

Index of the solution to explore, specified as a scalar integer. For example, if the optimization found a solution, solution = explore(result, 3) returns the solution with the 3rd lowest cost.

Data Types: double

Index of the simulation scenario to explore, specified as a scalar integer. For example, if the optimization found a solution, solution = explore(result, 3, 2) returns the solution with the 3rd lowest cost, using the simulation scenario with index two.

Data Types: double

Output Arguments

expand all

OptimizationSolution object containing information related to the optimal fixed-point implementation for the system, including total cost of the implementation and the maximum difference between the baseline and the solution.

Introduced in R2018a