Struct coco_rs::Problem [−][src]
pub struct Problem { /* fields omitted */ }
Expand description
A specific problem instance.
Instances can be optained using Suite::next_problem.
Implementations
Evaluates the problem at x
and returns the result in y
.
The length of x
must match Problem::dimension and the
length of y
must match Problem::number_of_objectives.
Evaluates the problem constraints in point x and save the result in y.
The length of x
must match Problem::dimension and the
length of y
must match Problem::number_of_constraints.
Returns true if a previous evaluation hit the target value.
Returns the number of objectives of the problem.
Returns the number of constraints of the problem.
Returns the numver of integer variables of the problem.
The first n
variables will be integers then.
Returns 0
if all variables are continuous.
Returns the upper and lover bounds of the problem.
Returns how often this instance has been evaluated.
Returns how often this instances constrants have been evaluated.
Writes a feasible initial solution into x
.
If the problem does not provide a specific solution, it will be the center of the problem’s region of interest.