iwopy.core.opt_results.SingleObjOptResults

class iwopy.core.opt_results.SingleObjOptResults[source]

Bases: object

Container for optimization results for single objective problems.

Parameters:
  • problem (iwopy.core.Problem) – The problem

  • 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

success

Optimization success

Type:

bool

vars_int

Optimal variables, shape: (n_vars_int,)

Type:

np.array

vars_float

Optimal variables, shape: (n_vars_float,)

Type:

np.array

objs

Optimal objective function value

Type:

float

cons

Constraint values, shape: (n_constraints,)

Type:

np.array

problem_results

The results of the variable application to the problem

Type:

Object

pname

The problem’s name

Type:

str

vnames_int

The int variable names

Type:

list of str

vnames_float

The float variable names

Type:

list of str

onames

The names of objectives

Type:

list of str

cnames

The names of constraints

Type:

list of str

__init__(problem, success, vars_int, vars_float, objs, cons, problem_results)[source]

Methods

__init__(problem, success, vars_int, ...)

__init__(problem, success, vars_int, vars_float, objs, cons, problem_results)[source]