Solution

class pyoptsparse.pyOpt_solution.Solution(optProb, xStar, fStar, lambdaStar, optInform, info)[source]

This class is used to describe the solution of an optimization problem. This class inherits from Optimization which enables a solution to be used as an input to a subsequent optimization problem.

Parameters:
optProbOptimization problem class

Optimization problem used to create solution

xStardict

The final design variables

fStardict

The final objective(s)

lambdaStardict

The final Lagrange multipliers

optInformSolutionInform or None

Object containing the inform code and message returned by the optimizer. Optimizers that do not have inform exit codes do not set this variable.

infodict

A dictionary containing timing and call counter info to be stored in the Solution object.