Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Passing constraint values to tell #258

@nikohansen

Description

@nikohansen

Should we allow using tell like (based on a suggestion by @brockho)

tell(solutions, objective_values, constraints_values=constraints_values)

Implementation thoughts: the above call would probably instantiate a AugmentedLagrangian instance and call set_coefficients. The instance call takes a g-value list and returns a penalties list. The penalties sum is meant to be added to the objective value similar to penalty boundary handling. update can be called with the best solution afterwards.

See also ConstrainedFitnessAL which uses an AugmentedLagrangian instance and cma.fmin_con2 which uses the former.

Next steps:

  • outline/implement a AugmentedLagrangian ask-and-tell use case scenario similar to the one with ConstrainedFitnessAL found in this notebook trying to be less opaque than in these docs
  • evaluate the advantages/disadvantages to incorporate this functionality directly into tell.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions