Solution

data class Solution(val inputMap: InputMap, val estimatedObjFnc: EstimatedResponse, val responseEstimates: List<EstimatedResponse>, val evaluationNumber: Int, val isValid: Boolean = true) : Comparable<Solution> , FeasibilityIfc, EstimatedResponseIfc(source)

A solution represents the evaluated inputs for on a problem definition. Solution also implements the EstimatedResponseIfc interface by delegating to the supplied estimated objective function. The FeasibilityIfc interface is implemented by delegating to the supplied input map.

Parameters

inputMap

the inputs (name,value) pairs associated with the solution

estimatedObjFnc

the estimated objective function from the simulation oracle

responseEstimates

the estimates of the responses associated with the response constraints

evaluationNumber

the iteration number of the solver request. That is, the number of times that the simulation oracle has been asked to evaluate (any) input.

Constructors

Link copied to clipboard
constructor(inputMap: InputMap, estimatedObjFnc: EstimatedResponse, responseEstimates: List<EstimatedResponse>, evaluationNumber: Int, isValid: Boolean = true)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

The estimated (average) value of the objective function

Link copied to clipboard
Link copied to clipboard

The estimated (average) value of the objective function but rounded to the problem's granularity for the objective function

Link copied to clipboard

The value of the penalized objective function but rounded to the problem's granularity for the objective function

Link copied to clipboard
val id: Int
Link copied to clipboard
Link copied to clipboard
val isValid: Boolean = true
Link copied to clipboard
val objFuncComparator: <Error class: unknown class><Solution>

Allows comparison of solutions by the estimated objective function

Link copied to clipboard

The penalized objective function. That is, the estimated objective function plus the total penalty associated with violating the constraints.

Link copied to clipboard
val penalizedObjFuncComparator: <Error class: unknown class><Solution>

Allows comparison of solutions by the estimated objective function

Link copied to clipboard

The current value of the penalty function

Link copied to clipboard
Link copied to clipboard

The response estimate averages

Link copied to clipboard

The total penalty associated with violating the response constraints

Link copied to clipboard

The number of times that the response has been sampled. The sample size of the response estimates.

Link copied to clipboard

The standard deviations of the estimated responses

Link copied to clipboard

The variance of the estimated responses

Link copied to clipboard

The violation amount for each response constraint

Functions

Link copied to clipboard
open override fun asMappedData(): Map<String, Double>

Converts the solution to a map of name, value pairs. The returned values include the input map, the estimated objective function, and the estimated responses.

Link copied to clipboard
Link copied to clipboard
open operator override fun compareTo(other: Solution): Int
Link copied to clipboard
fun isResponseConstraintFeasible(overallCILevel: Double = 0.99): Boolean

Tests if each response constraint is feasible. If all tests are feasible, then the solution is considered response feasible.

Link copied to clipboard

Computes a one-sided upper confidence interval for each response constraint to test if the interval contains zero. If the upper limit of the interval is less than 0.0, then we can be confident that response constraint is feasible. The individual confidence interval upper limits are based on a one-sided confidence interval on the mean response assuming normality. The upper limit is computed as (x_bar - b + t(level, n-1)*s/sqrt(n)) assuming a less-than constraint. The individual confidence interval levels are adjusted to meet the overall level of confidence.

Link copied to clipboard

Converts the solution to an instance of a ResponseMap

Link copied to clipboard
open override fun toString(): String