![]() |
Ultra 0.9.4
|
#include "kernel/gp/individual.h"#include "kernel/nullary.h"#include "kernel/value_format.h"#include "kernel/gp/src/variable.h"#include "utility/log.h"#include "utility/misc.h"#include <cstdint>#include <expected>#include <ranges>#include <vector>Namespaces | |
| namespace | ultra |
Typedefs | |
| using | ultra::gp::internal::relocation_result_t = std::expected<relocation_result, relocation_error> |
Enumerations | |
| enum class | ultra::gp::internal::relocation_error { insufficient_rows } |
| Recoverable relocation failures. More... | |
Functions | |
| locus | ultra::gp::random_locus (const individual &prg) |
| decision_vector | ultra::gp::extract_decision_vector (const individual &ind) |
| relocation_result_t | ultra::gp::internal::relocate_exons (const individual &from, locus::index_t first_index, matrix< gene > &to) |
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/
|
strong |
|
nodiscard |
Extracts the decision vector associated with an individual.
The returned decision_vector provides a flat, optimiser-friendly view of all tunable scalar parameters (currently D_DOUBLE and D_INT) appearing in the active portion of the genome.
|
nodiscard |
Copies the active graph of from into to, compacting active rows.
Active rows are relocated into the consecutive range starting at first_index. Active loci keep their original categories and address arguments are rewritten to point at the corresponding relocated rows.