Spécifications

The basic idea of CRO is to simulate coral colonies that develop and compete for space on a reef, ultimately forming an optimal structure. Each coral in the reef represents a potential solution to the optimization problem under consideration.

The reef is modeled as a two-dimensional N×M grid. Each grid cell can either be occupied by a coral or left empty. A coral is a coded solution to an optimization problem. For each coral, a fitness (health) function is determined that corresponds to the objective function of the optimization problem.

The ρ₀ ∈ (0,1) parameter determines the initial proportion of the reef occupied by corals, that is, the ratio of occupied cells to the total number of cells at the beginning of the algorithm. Initialization of the reef is performed as follows:

  1. The reef size of N×M and the initial filling fraction ρ₀ are specified.
  2. ⌊ρ₀ × N × M⌋ reef cells are randomly selected to house the starting corals.
  3. Initial corals are generated randomly within the search area and placed in the selected cells.

After the reef is initialized, an iterative process of reef formation and development begins, consisting of several stages:

Broadcast Spawning. For this type of reproduction, a certain proportion of Fₑ existing corals is selected. The selected corals form pairs and create offspring using crossover operators. Each pair produces a larva using the crossover operator (ordinary averaging).

Brooding. The remaining fraction of corals (1-Fₑ) engage in brooding where each coral produces offspring through mutation. For each coral selected for brooding, a larva is created using a mutation operator. The larva typically represents a small random variation of the encoded solution. Larval settlement. After the larvae are formed, each one tries to take its place in the reef during the reproductive stages. The settlement is carried out according to the following rules:

  1. The larva randomly chooses a cell (i, j) in the reef.
  2. If the cell is free, the larva occupies it.
  3. If the cell is occupied, the larva can displace the existing coral only if its fitness is higher: f(larva) > f(Ξᵢⱼ).
  4. If displacement does not occur, the larva may try to settle in another place (up to a maximum k number of attempts).
  5. If after k attempts the larva fails to find a place, it dies.

Asexual reproduction (budding). The best corals in a reef (Fₐ fraction) can reproduce asexually, creating exact copies of themselves (clones). Formally:

  1. Corals are sorted by the fitness function.
  2. The best Fₐ × 100% corals are selected for asexual reproduction.
  3. Each selected coral creates a clone that attempts to settle in the reef according to the same rules as during the larval settlement.

Depredation. At the end of each iteration, the worst corals in the reef may die with Pd probability, making room for new corals in the next iterations.

The reef formation is repeated until the specified stopping criterion is met, such as reaching the maximum number of iterations. After stopping, the best coral in the reef represents the found solution to the optimization problem.


Répondu

1
Développeur 1
Évaluation
(16)
Projets
35
23%
Arbitrage
4
0% / 50%
En retard
2
6%
Travail
2
Développeur 2
Évaluation
(393)
Projets
549
40%
Arbitrage
30
57% / 3%
En retard
57
10%
Travail
Publié : 11 codes
3
Développeur 3
Évaluation
(75)
Projets
80
6%
Arbitrage
46
11% / 54%
En retard
7
9%
Travail
4
Développeur 4
Évaluation
(3)
Projets
4
0%
Arbitrage
2
0% / 100%
En retard
1
25%
Gratuit
5
Développeur 5
Évaluation
(563)
Projets
651
33%
Arbitrage
41
41% / 46%
En retard
11
2%
Occupé
6
Développeur 6
Évaluation
(18)
Projets
23
9%
Arbitrage
6
33% / 50%
En retard
1
4%
Chargé
7
Développeur 7
Évaluation
(1)
Projets
1
100%
Arbitrage
0
En retard
0
Gratuit
8
Développeur 8
Évaluation
(1)
Projets
1
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
9
Développeur 9
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
10
Développeur 10
Évaluation
(361)
Projets
433
54%
Arbitrage
20
55% / 15%
En retard
30
7%
Travail
11
Développeur 11
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
12
Développeur 12
Évaluation
(10)
Projets
19
42%
Arbitrage
7
0% / 57%
En retard
3
16%
Travail
13
Développeur 13
Évaluation
(5)
Projets
6
67%
Arbitrage
0
En retard
0
Travail
14
Développeur 14
Évaluation
(7)
Projets
5
0%
Arbitrage
6
0% / 83%
En retard
1
20%
Travail
Commandes similaires
Mk 30+ USD
I need a fully automated trading robot designed to generate consistent profits while strictly controlling risk and minimizing losses. The robot should use a combination of strategies, including trend-following, scalping, and price action, and must be able to adapt to different market conditions such as trending and ranging markets. It should analyze the market using indicators like Moving Averages, RSI, MACD, and
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot

Informations sur le projet

Budget
850+ USD
Délais
de 3 à 8 jour(s)

Client

Commandes passées1
Nombre d'arbitrages0