class iwopy.core.SingleObjOptResults[source]

Container for optimization results for single objective problems.

Attributes

success: bool

Optimization success

vars_int: np.array

Optimal variables, shape: (n_vars_int,)

vars_float: np.array

Optimal variables, shape: (n_vars_float,)

objs: float

Optimal objective function value

cons: np.array

Constraint values, shape: (n_constraints,)

problem_results: Object

The results of the variable application to the problem

pname: str

The problem’s name

vnames_int: list of str

The int variable names

vnames_float: list of str

The float variable names

onames: list of str

The names of objectives

cnames: list of str

The names of constraints

Public members

SingleObjOptResults(problem, success, vars_int, vars_float, ...)[source]

Constructor

__str__()[source]

Return str(self).