-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multiple scalars can now be returned by an objective function, while the default is only one scalar. In case of multiple objectives (multiple numbers), the objective function must be decorated with the respective directions: @directions(['minimize', 'maximize']) def my_objective(...): # do your calculations return value_to_minimize, value_to_maximize If only one number is returned, the decorator can be omitted if that number should be minimized. If maximization is desired,n single-objective optimisation, the decorator should be used with @directions(['maximize']) def my_objective(...): # do your calculations return value_to_maximize All plotting functions of the Inspector now have a keyword argument objective_number to indicate for which of those objective the respctive plot should be created.
- Loading branch information
Benedikt Volkel
committed
Jul 12, 2024
1 parent
7b1eb09
commit ce0b2af
Showing
3 changed files
with
129 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters