Equations & optimization

Multistart Optimization Landscape Lab

Runs up to 20 starts downhill on a two-variable landscape (four valleys, an egg crate, the six-hump camel, or six seeded wells) with the same bounded projected-gradient descent and an Armijo step search, all sharing one evaluation budget. Starts are scattered at random from a seed, spread evenly by a Halton sequence, or placed by hand. It groups the settled finals into distinct minima, reports the best point, how many minima tie, the share of starts that reached the lowest known value and the number of starts needed for a 90% chance, and draws the heat map, the descent paths and the budget spent. Refuses invalid inputs plainly, flags ties, budget cuts and capped or stalled starts, and scores five challenges. For learning why a better minimum costs computation.

Last updated

Calculator overview

Inputs and outputs

This summary comes from the calculator's published input and output contract.

Inputs

Your start 3 x (required)
About this input

Across position (x) of your third start, from -5 to 5. Drag marker 3 on the map. Used when you place three starts.

Default 0.5 Range -5 to 5
Your start 3 y (required)
About this input

Up position (y) of your third start, from -5 to 5. Drag marker 3 on the map. Used when you place three starts.

Default 0.75 Range -5 to 5
Your start 2 x (required)
About this input

Across position (x) of your second start, from -5 to 5. Drag marker 2 on the map. Used when you place at least two starts.

Default 1.5 Range -5 to 5
Your start 2 y (required)
About this input

Up position (y) of your second start, from -5 to 5. Drag marker 2 on the map. Used when you place at least two starts.

Default -0.5 Range -5 to 5
Your starts (required)
About this input

How many starts you place yourself, from 0 to 3, with the Your starts stepper. They take the first start slots; drag their markers on the map.

Default 0 Range 0 to 3
Your prediction: starts for 90%
When omitted Blank
About this input

Challenge 4 only: how many starts you predict are needed for a 90% chance that at least one reaches the lowest point, 1 to 100. Use the prediction stepper; the answer card appears once you predict.

Default Not set Range 1 to 100
Start placement (required)
About this input

How the starts are placed: Random scatters them from the start seed; Halton spreads them evenly in a fixed pattern. Chosen with the chips on the canvas. Your own starts, if any, come first either way.

Default Random Allowed Random, Halton
Starts (required)
About this input

How many starts run downhill, from 1 to 20. Use the Starts stepper on the canvas. They share one evaluation budget and run in order.

Default 8 Range 1 to 20
Start seed (required)
About this input

The number that fixes where random starts land, from 1 to 2147483646. Type it or press New seed for another scatter. Used only with Random placement.

Default 2026 Range 1 to 2147483646
Your start 1 y (required)
About this input

Up position (y) of your first start, from -5 to 5. Drag marker 1 on the map; a point outside the landscape box is moved to its edge.

Default 0.5 Range -5 to 5
Egg crate height (required)
About this input

How tall the egg crate ridges are, from 0 (a plain bowl) to 10. Drag the height handle on the map; it shows only on the Egg crate landscape. Taller ridges make more small dips to get stuck in.

Default 10 Range 0 to 10
Evaluation budget (required)
About this input

The total number of times the landscape height may be computed by all the starts together, from 100 to 3000 in steps of 100. Use the Budget stepper beside the budget bar. When it runs out the remaining starts stop or never run.

Unit evaluations Default 1000 Range 100 to 3000
Challenge number (required)
About this input

The challenge to try: 0 for none, 1 to 5 for the five challenges. A challenge sets the landscape and the starts for you and leaves only its own controls free.

Default 0 Range 0 to 5
Convergence tolerance (required)
About this input

How flat the ground must be before a start counts as settled, from 0.00000001 to 0.01. A smaller tolerance asks for a more exact bottom and costs more steps.

Default 0.0001 Range 1E-08 to 0.01
Iterations per start (required)
About this input

The most downhill steps each start may take, from 5 to 40. Use the Iterations per start stepper. A start that has not settled by then stops at the iteration cap.

Default 30 Range 5 to 40
Your prediction: valleys found
When omitted Blank
About this input

Challenge 1 only: how many different valleys you predict the twelve starts will find, 0 to 4. Press a prediction button; the descent runs appear once you predict.

Default Not set Range 0 to 4
Your start 1 x (required)
About this input

Across position (x) of your first start, from -5 to 5. Drag marker 1 on the map; a point outside the landscape box is moved to its edge.

Default -1.5 Range -5 to 5
Landscape seed (required)
About this input

The number that fixes where the six wells sit and how deep and wide they are, from 1 to 2147483646. Type it or press New seed for another landscape. Used only on Seeded wells.

Default 13 Range 1 to 2147483646
Landscape (required)
About this input

The landscape the starts run downhill on: Four valleys (four equally deep minima), Egg crate (a bowl covered in a lattice of small dips), Camel (two deepest dips among six) or Seeded wells (six wells of random depth placed from a seed). Chosen with the tabs above the map.

Default Seeded wells Allowed Four valleys, Egg crate, Camel, Seeded wells

Outputs

Lowest map value
About this output

The lowest height among the 31 x 31 map points: the low end of the colour legend. Not a result card.

No unit declared
Highest map value
About this output

The highest height among the 31 x 31 map points: the high end of the colour legend. Not a result card.

No unit declared
The different minima found, in order of discovery
About this output

One row per different minimum found, in the order the starts found them: its position, height, how many starts reached it and whether it is one of the deepest found.

No unit declared
Model version
About this output

The version of the model behind these results.

No unit declared
Model Status
About this output

OK when the results can be used; CHECK with the reason when the results need care (a prediction is awaited, several minima tie, the budget ran out, starts hit the iteration cap or stalled); NOT VALID with the reason when an input cannot be used, and then the results are empty.

No unit declared
Landscape used
About this output

The landscape the results are for (a challenge may set it).

No unit declared
Evaluations used
About this output

How many landscape heights all the starts computed together.

Unit evaluations
Evaluation budget used
About this output

The evaluation budget the results use; the budget bar is drawn against it.

Unit evaluations
Iterations per start used
About this output

The step cap per start the results use.

No unit declared
Landscape seed used
About this output

The landscape seed the results use. Empty unless the landscape is Seeded wells.

No unit declared
The landscape: the shade of each of 31 x 31 map points (0 lowest, 1 highest, on a log scale), rows from the lowest y
About this output

The map: for each of 31 rows (from the lowest y) its y position, then the shade of 31 points across it, from 0 at the lowest height to 1 at the highest on a logarithmic scale, so shallow valleys still show.

No unit declared
Starts that converged
About this output

How many starts converged: the ground under them became flat enough for the tolerance.

No unit declared
Starts that ran
About this output

How many starts ran at all before the budget ran out.

No unit declared
Start placement used
About this output

How the starts were placed for these results (a challenge may set it).

No unit declared
Starts reaching the lowest known value
About this output

The share of the starts that ran which reached the lowest known value (within 0.001), as a percentage.

Unit %
Each start: where it began, where it ended and why
About this output

One row per start: where it began, where it ended, its final height, which minimum it found, why it stopped, how many steps and evaluations it used, and whether its minimum is one of the deepest.

No unit declared
Starts for a 90% chance
About this output

The smallest number of starts that gives at least a 90% chance that one of them reaches the lowest known value, if each start succeeds with the share above. Empty when no start reached it.

No unit declared
Your starts used
About this output

How many hand-placed starts the results use.

No unit declared
Formula module versions
About this output

The versions of the formula modules behind these results.

No unit declared
Starts used
About this output

The number of starts the results use.

No unit declared
Start seed used
About this output

The start seed the results use. Empty unless the starts are Random.

No unit declared
Starts cut by the budget
About this output

How many starts stopped early or never ran because the evaluation budget ran out.

No unit declared
Best point y
About this output

Up position (y) of the best point found.

No unit declared
Best point x
About this output

Across position (x) of the best point found: the first start whose final height is within 0.001 of the best value.

No unit declared
Map right edge (x)
About this output

Right edge of the map (x). Used to draw the map; not a result card.

No unit declared
Map top edge (y)
About this output

Top edge of the map (y). Used to draw the map; not a result card.

No unit declared
Map left edge (x)
About this output

Left edge of the map (x). Used to draw the map; not a result card.

No unit declared
Best value found
About this output

The lowest landscape height any start reached.

No unit declared
Lowest known value
About this output

The lowest height known for this landscape: 0 for Four valleys and Egg crate, -1.0316 for Camel, and on Seeded wells the lowest of the six wells polished from their centres (a careful search, not a proof).

No unit declared
Gap to the lowest known value
About this output

How far the best value found is above the lowest known value.

No unit declared
The best value so far against the evaluations spent
About this output

For each start that ran, in order: the evaluations spent so far and the best height found so far, for the cost-against-quality chart.

No unit declared
Minima tied for lowest
About this output

How many different minima are within 0.001 of the best value found; 2 or more means several equally deep bottoms.

No unit declared
Start that found it
About this output

The start slot that found the best point (the first one, when several tie within 0.001).

No unit declared
Egg crate height used
About this output

The egg crate height the results use. Empty unless the landscape is Egg crate.

No unit declared
Convergence tolerance used
About this output

The convergence tolerance the results use.

No unit declared
Frames to play
About this output

How many frames of the descent the player can step through: 16, or 1 while challenge 1 waits for your prediction, or 0 when the inputs are not valid. Used by the player; not a result card.

No unit declared
Different minima found
About this output

How many different minima the settled starts found (finals closer than one twentieth of the map size count as the same minimum).

No unit declared
Descent paths: every start's point at 16 iterations
About this output

The descent paths: at 16 iterations (0 to 6, 8, 10, 12, then every 4 to 40) the position of every start that ran. A start that stopped stays at its final point.

No unit declared
Challenge result
About this output

MET or NOT MET for the selected challenge, or No challenge selected.

No unit declared
Challenge feedback
About this output

A hint toward the goal, the prompt to predict first, or what the result shows once the challenge is met.

No unit declared
Map bottom edge (y)
About this output

Bottom edge of the map (y). Used to draw the map; not a result card.

No unit declared
Challenge goal
About this output

What the selected challenge asks you to do.

No unit declared
Challenge score
About this output

100 when the selected challenge is met, otherwise 0.

No unit declared
Challenge: the value scored
About this output

The value the challenge is scored on: the number of minima found (challenge 1), the gap to the lowest known value (challenges 2 and 3), the starts needed for 90% (challenge 4) or your iterations per start (challenge 5).

No unit declared
This page is provided by LogicCommons for informational purposes only. Results are analysis outputs computed from the inputs you supply and are not professional advice. Verify all inputs and results independently.

LogicCommons is in beta. If a result, label, or reference looks wrong, tell us here; we read every message.

Methodology

Purpose and model boundary

This lab runs up to 20 starts downhill on a two-variable landscape and compares what they find. The landscape is one of four: four valleys (the Himmelblau function), an egg crate (the Rastrigin function with an adjustable height), the six-hump camel, or six wells of random depth placed from a seed on a shallow bowl. The starts are scattered at random from a seed, spread evenly by a Halton sequence, or up to three are placed by hand. Every start runs the same bounded descent, a projected gradient step with an Armijo backtracking search, and all the starts share one budget of landscape evaluations. The model groups the settled finals into distinct minima and returns the best point, how many minima tie for the lowest value, the share of starts that reached the lowest known value, the number of starts needed for a 90% chance of reaching it, the descent paths, a heat map of the landscape and the evaluations spent. Five scored challenges go with it.

It is a lab for learning why a better minimum costs computation: why a descent finds only the valley it starts in, why a valley with a small catchment can be missed by every start, and how one budget can be spent on many short searches or a few long ones. It is not an optimization method for real problems. It has two variables, four fixed landscapes, one local method and at most 20 starts of 40 steps, and its lowest known value on the seeded wells is the best of six careful descents, not a proof.

The model is the calculation authority. The page sends the values you set to the model and draws only what it returns: the heat map and its legend, the box, the starts, the descent paths frame by frame, the finals coloured by their minimum, the deepest minima, the starts that never ran, the budget bar and the best-so-far chart. The page computes no height, step, path, minimum or share itself.

Inputs and units

The landscape coordinates x and y and the height f are pure numbers; the lab has no physical units. The budget is counted in evaluations, one for each time a landscape height is computed.

Input Meaning and unit
Landscape Four valleys, Egg crate, Camel or Seeded wells (default).
Egg crate height A, from 0 (a plain bowl) to 10 (default 10): how tall the egg crate ridges are. Used only on the egg crate.
Starts placed Random (default), scattered from the start seed, or Halton, spread evenly in a fixed pattern.
Starts A whole number from 1 to 20 (default 8): how many starts run downhill.
Iterations per start A whole number from 5 to 40 (default 30): the most downhill steps each start may take.
Evaluation budget A whole number from 100 to 3000 in steps of 100 (default 1000): the total number of landscape evaluations all the starts may use together.
Start seed A whole number from 1 to 2147483646 (default 2026): fixes where random starts land. Used only with Random placement.
Landscape seed A whole number from 1 to 2147483646 (default 13): fixes where the six wells sit and how deep and wide they are. Used only on Seeded wells.
Your starts A whole number from 0 to 3 (default 0): how many starts you place yourself. They take the first start slots.
Your start 1, 2 and 3, x and y Each from -5 to 5 (defaults (-1.5, 0.5), (1.5, -0.5) and (0.5, 0.75)). A point outside the landscape's box is moved to its edge. Used only for the starts you place.
Convergence tolerance From 1×10⁻⁸ to 0.01 (default 1×10⁻⁴): how flat the ground must be before a start counts as settled.
Challenge number 0 for free exploration, or 1 to 5 to load a challenge.
Your prediction: how many valleys Blank until you choose, or a whole number from 0 to 4: your answer for challenge 1. 0 is a real answer.
Your prediction: starts for a 90% chance Blank until you set it, or a whole number from 1 to 100: your answer for challenge 4.

An input applies only when its setting makes it apply (the egg crate height on the egg crate, the start seed with Random placement, the landscape seed on Seeded wells, your start coordinates for the starts you place, each prediction in its own challenge) and the active challenge does not fix it. An input that does not apply is not checked and not read: the model uses its default, and its value in Settings used is blank.

Where each input is set:

  • On the canvas only: the landscape (tabs above the map), the egg crate height (a line dragged on a small height chart, shown only on the egg crate), how the starts are placed (two chips), the Starts, Iterations per start, Budget and Your starts steppers, your start markers (dragged on the map in steps of 0.01, with an exact entry), the valley prediction (buttons 0 to 4, only in challenge 1) and the starts prediction (a stepper that shows ? until you first set it, only in challenge 4). None of these is in the input panel. Apart from the predictions, the Explore level offers only the landscape tabs and the Starts stepper; the rest come at Experiment.
  • In the input panel: the start seed (Random placement only), the landscape seed (Seeded wells only), each with a New seed button, the convergence tolerance (Experiment and up, offered as 0.01, 0.001, 1×10⁻⁴, 1×10⁻⁶ or 1×10⁻⁸), and the challenge picker.

A learning level changes only what is shown, never a calculation.

Governing relationships

The landscapes. Each has its own box, which bounds both the map and the descent:

  • Four valleys: f = (x² + y - 11)² + (x + y² - 7)², on -5 ≤ x, y ≤ 5. Its four minima all have height 0.
  • Egg crate: f = x² + y² + 2·A·(sin²(π·x) + sin²(π·y)), on -3.2 ≤ x, y ≤ 3.2. This is the Rastrigin function 2·A + Σ(x_i² - A·cos(2π·x_i)) written without cancellation; its lowest point is 0 at the origin, among a lattice of dips about 1 apart.
  • Camel: f = (4 - 2.1·x² + x⁴/3)·x² + x·y + (-4 + 4·y²)·y², on -2 ≤ x ≤ 2, -1 ≤ y ≤ 1. Its two deepest dips have the same height, about -1.0316.
  • Seeded wells: f = 0.02·(x² + y²) - Σ D_m·exp(-((x - X_m)² + (y - Y_m)²)/(2·s_m²)) over six wells, on -5 ≤ x, y ≤ 5. From four uniform draws u of the landscape seed, each well has its centre X_m = -4 + 8·u and Y_m = -4 + 8·u, its depth D_m = 1 + 2·u and its width s_m = 0.5 + 0.7·u.

The model uses the exact gradient g = (∂f/∂x, ∂f/∂y) of each landscape. The box size S is the longer side of the box: 10, 6.4, 4 and 10.

The random draws. Random starts and the wells come from the minimal standard generator, s_n = 48271·s_(n-1) mod (2³¹ - 1), started from the seed, with its first two outputs discarded; each output divided by 2³¹ - 1 is a uniform draw u, never 0 or 1. The two seeds drive two separate streams, so the landscape stays fixed while the starts change.

Placing the starts. Start slot s, from 1 to 20:

  • your own starts take the first slots, up to the number of starts, each clamped into the box;
  • with Random placement the other slots lie at x = x_low + W·u and y = y_low + H·u, with W and H the box's width and height, and slot s always uses draws 2s - 1 and 2s, so changing the number of starts or adding your own never moves another slot's point;
  • with Halton placement slot s lies at the unscrambled Halton point of index s in bases 2 and 3 (the digits of s reversed after the point), scaled to the box.

The descent. Each start runs the projected gradient method with Armijo backtracking. Proj clamps a point into the box. At a point x with gradient g:

  • Settled test. The start has converged when |x - Proj(x - g)|² ≤ tol²·max(1, |g|²), the gradient-mapping test at unit step. It is applied at every point x₀ to x_T, where T is the iterations per start.
  • Step search. Otherwise the model tries the steps α = 1, 1/2, 1/4, ..., 1/32768 (16 trials) in order. Each trial point t = Proj(x - α·g) is clamped into the box first, and the first trial with f(t) ≤ f(x) + 10⁻⁴·g·(t - x) (the sufficient-decrease condition on the clamped step) is taken.
  • Stops. A start that reaches x_T without passing the test has Reached the iteration cap. If no trial passes, the start has Stalled and holds its point.

The budget. Evaluations count landscape heights only: 1 for f(x₀) of each start that runs, j + 1 for a step accepted at trial j (counting from 0), and 16 for a stalled row. Gradients are not counted. Starts run in slot order, each with the budget the earlier starts left. A step runs only if its whole cost fits in what is left; otherwise the start ends Out of budget at its current point and nothing is charged for that row. A start left with no budget at all is Not run.

Minima. Only converged finals form minima. In slot order, a final joins the first earlier minimum whose first final lies within 0.05·S of it; otherwise it starts a new one. Minima are numbered in the order they are found.

The value band. One band is used for every comparison of heights: v is within the band of a reference r when v ≤ r + 0.001·max(1, |r|).

Best point and ties. The best value is the lowest final height of any start that ran, whether it converged or not. The best point is that of the first start (lowest slot) whose final is within the band of the best value. A minimum is one of the deepest when its height is within the band of the best value, and the number of deepest minima is the number of ties.

The lowest known value. 0 for four valleys and the egg crate, and -1.0316284534898774 for the camel. On seeded wells it is the lowest of six extra descents, one from each well centre (clamped into the box), each of 40 steps at tolerance 10⁻⁴ and free of the budget: a careful search, not a proof. The gap is the best value minus the lowest known value.

Success and the starts for 90%. A start succeeds when its final is within the band of the lowest known value. With p the share of the starts that ran which succeeded, every start misses with chance 1 - p, so m starts all miss with chance (1 - p)^m. The starts for 90% is the smallest m with (1 - p)^m ≤ 0.1: m = ln 0.1 / ln(1 - p), rounded up (and taken as the whole number itself when it lies within one part in a billion of one). It is 1 when every start succeeded and blank when none did.

The heat map. f is computed at 31 × 31 points spread evenly over the box, edges included. Each point's shade is ln(1 + (f - f_low)) / ln(1 + (f_high - f_low)), from 0 at the lowest map height to 1 at the highest, on a log scale so that shallow valleys still show.

Calculation sequence

  1. The model checks your inputs in the order of the status list under Errors and warnings, on the values entered, for the inputs that apply.
  2. In a challenge, every input the challenge fixes takes its value; the inputs it leaves to you and your predictions keep yours. An input that does not apply takes its default.
  3. It builds the landscape: its box, the six wells from the landscape seed on Seeded wells, and the heat map.
  4. It places the starts: your own first, then random or Halton points.
  5. It runs the starts in slot order, each descent with the budget left to it, and records each start's final point, height, status, steps and evaluations.
  6. On Seeded wells it runs the six descents from the well centres for the lowest known value.
  7. It groups the converged finals into minima, finds the best point, the ties, the gap, the success share and the starts for 90%, and the best value so far after each start.
  8. It reads the 16 frames of the paths.
  9. It sets the status and, in a challenge, scores the challenge and holds back what the challenge keeps hidden.

Outputs and interpretation

  • Best value found: the lowest height any start reached, and the best point (x, y) and the start that found it (the first one, when several tie within the band).
  • Distinct minima: how many different minima the settled starts found, and the number of ties for the lowest value (2 or more means several equally deep bottoms).
  • Starts that ran, starts settled (converged) and starts cut by the budget (stopped early or never ran); evaluations used.
  • Share reaching the lowest known value (%) and the starts for a 90% chance.
  • Lowest known value and the gap between the best value found and it.
  • Settings used: the landscape, egg crate height, placement, starts, iterations, budget, seeds, your starts and tolerance in effect (a challenge may fix them; an input that does not apply reads blank).
  • Start table: for each start, where it began and ended, its final height, which minimum it found, why it stopped (Converged, Reached the iteration cap, Stalled, Out of budget or Not run), its steps and evaluations, and whether its minimum is one of the deepest.
  • Minima table: one row per minimum in the order found: its position, height, how many starts reached it and whether it is one of the deepest.
  • Best so far: for each start that ran, in order, the evaluations spent so far and the best height found so far.
  • Descent frames: the position of every start at iterations 0 to 6, 8, 10, 12 and then every 4 to 40 (16 frames); a start that stopped stays at its final point, and an iteration past the cap shows the cap.
  • Heat map: the 31 × 31 shades, with the lowest and highest map heights.

Heights and coordinates are given to four decimals, and a value smaller than 0.00005 in size is shown as 0; the decisions use the unrounded values.

Reading the canvas: the map is shaded from low to high on the log scale, with the legend ends labelled low and high. The starts, their descent paths up to the player's frame ("Iteration k"), the finals coloured by the valley they found, the deepest valleys starred and the starts that never ran (budget spent) are drawn on it. The budget bar shows the evaluations spent start by start against the budget, and at the Advanced level the best value so far is drawn against the evaluations spent so far. In challenges 2, 3 and 5 the canvas waits for Run before it draws the descents.

What to take from the lab: a plain descent carries a start only to the bottom of the valley it starts in, so the starts find only the valleys whose catchments they land in, and a valley with a small catchment can be missed by every one. Each start costs evaluations: on a budget, many short searches sample more of the landscape than a few long ones, but each needs just enough iterations to settle. The share of successful starts tells how many starts give a 90% chance, because every extra start multiplies the chance that all of them miss.

Challenges

Each challenge fixes its own landscape and starts and leaves only some inputs to you. The model scores each one MET (100) or NOT MET (0) and gives a one-line hint while it is not met.

  1. How many valleys? (easy). Twelve random starts run downhill on the four-valley landscape. Predict how many different valleys they will find. Met when your prediction equals the number of distinct minima the starts find. The value scored is that number.
  2. Beat the egg crate on a budget (medium). With only 400 evaluations on the egg crate, set the number of starts and the iterations per start so the best value is within 0.001 of the lowest point. Met when the best value is within the band of the lowest known value, 0. The value scored is the gap.
  3. Three good guesses (medium). The map is hidden. Place your three starts so that one of them reaches the deepest well. Met when the best value is within the band of the lowest known value: 0.001 times the size of that depth. The value scored is the gap.
  4. How many starts for 90%? (hard). Some of twenty starts on seeded wells reached the lowest point. Predict how many starts you would need for a 90% chance that at least one of them reaches it. Met when your prediction is within 1 of the model's starts for 90%. The value scored is the starts for 90%.
  5. Just enough iterations (medium). Twelve evenly spread starts descend on the camel landscape. Find the smallest number of iterations per start that still lets every start converge. Met when all twelve starts converge and one fewer iteration would leave a start short of its minimum. The value scored is your iterations per start.

Challenge 1 holds back the answer until you predict: while your prediction is blank, every result that counts or points at the valleys is blank (the best value and point, the ties, the minima, the settled and cut starts, the evaluations, the share, the starts for 90%, the gap and the value scored), the descent frames show only the twelve starts, the start table shows only where each start began, the minima table and the best-so-far list are blank, and the status asks for your prediction. The map, the starts that ran and the lowest known value stay. Once you choose, every result appears, met or not. Challenge 3 hides the heat map and its legend ends while it is not met, because they show where the deepest well is; the box, your paths and finals, the best value, the gap and the lowest known value stay. Challenge 4 holds back the starts for 90% and the value scored until you predict; the share of starts that reached the lowest point stays, since it is what you work from. Challenges 2 and 5 withhold nothing.

Validation and status logic

The status reads the first match in the list under Errors and warnings. The NOT VALID checks read the values you entered for the inputs that apply, inside a challenge too, except the inputs the challenge fixes. The CHECK items read the calculation with the values in effect. A challenge number that is not a whole number from 0 to 5 counts as no challenge, both for the fixed inputs and for which inputs apply.

Assumptions and limitations

  • Two variables, four fixed landscapes, at most 20 starts with at most 40 steps each, and up to three starts placed by hand.
  • One local method, with a fixed search of 16 trial steps from 1 down to 1/32768. On the egg crate a step costs about 8 to 10 evaluations, and the first long steps can hop between valleys.
  • Distinct minima count converged finals only. A final that stops at the iteration cap or out of budget counts for the best value and the success share, not as a minimum.
  • Finals within 0.05 of the box size of each other count as one minimum, and heights within 0.001·max(1, |reference|) count as equal.
  • The lowest known value on seeded wells is the best of six descents from the well centres, not a proof.
  • Tight tolerances (1×10⁻⁶, 1×10⁻⁸) reach the rounding floor near some minima, where a step can stall or change with the last digit.
  • A value within about 1×10⁻⁹ (relative) of the settled test, the minimum radius or the value band may fall either side of it.

Restrictions and non-computing states

Under NOT VALID every result and every table is blank, except the model's version texts, the challenge status (No challenge selected, or NOT MET when a challenge is selected), a score of 0, and the goal and not-met hint of a selected challenge.

A start cut by the budget keeps the point it had reached; a start that never ran has no final point, height or minimum, and no path.

In challenges 1, 3 and 4 the results listed under Challenges stay blank until the challenge allows them.

Errors and warnings

The status messages, first match wins (n, b, N and T are whole numbers filled in by the model):

  • NOT VALID: choose a landscape from the list
  • NOT VALID: the egg crate height must be from 0 to 10
  • NOT VALID: choose how the starts are placed from the list
  • NOT VALID: the number of starts must be a whole number from 1 to 20
  • NOT VALID: the iterations per start must be a whole number from 5 to 40
  • NOT VALID: the evaluation budget must be a whole number from 100 to 3000
  • NOT VALID: the start seed must be a whole number from 1 to 2147483646
  • NOT VALID: the landscape seed must be a whole number from 1 to 2147483646
  • NOT VALID: the number of your own starts must be a whole number from 0 to 3
  • NOT VALID: each of your own starts needs x and y from −5 to 5
  • NOT VALID: the tolerance must be from 0.00000001 to 0.01
  • NOT VALID: the challenge number must be a whole number from 0 to 5
  • NOT VALID: the valley-count prediction must be blank or a whole number from 0 to 4
  • NOT VALID: the starts prediction must be blank or a whole number from 1 to 100
  • CHECK: predict how many valleys the starts will find; the descent runs appear once you predict: challenge 1, while your prediction is blank.
  • CHECK: n different minima tie for the lowest value found (within 0.001); the best point shown is the first start that reached one of them
  • CHECK: the evaluation budget ran out: b of N starts stopped early or never ran; raise the budget, or use fewer or shorter starts
  • CHECK: n of N starts used all T iterations without settling; allow more iterations per start
  • CHECK: n of N starts stalled: no trial step lowered the value before the tolerance was met; a looser tolerance usually settles them
  • OK

References

This laboratory is an educational model of multistart local optimization on four fixed two-variable landscapes: four valleys (the Himmelblau function), an egg crate, the six-hump camel and six seeded wells. Up to 20 starts, scattered by a seeded minimal standard random number generator, spread evenly by the Halton sequence in bases 2 and 3, or placed by hand, each run a projected gradient descent with an Armijo sufficient-decrease step search, and all of them share one evaluation budget. Finals that settle close to each other are grouped as one minimum, and the lab reports the best point, the share of starts that reached the lowest known value, and the smallest number of starts m with (1 - p)^m below 0.1, that is, the starts needed for a 90% chance of reaching it.

Sources and further reading

  • The six-hump camel function and the Himmelblau function, with their global minima: M. Jamil and X.-S. Yang, "A literature survey of benchmark functions for global optimization problems", International Journal of Mathematical Modelling and Numerical Optimisation 4(2), 2013, pages 150-194, section 3, functions 30 and 65. arXiv:1308.4008
  • Line searches with a sufficient-decrease test: J. Nocedal and S. J. Wright, Numerical Optimization, 2nd edition, Springer, 2006, chapter 3, Line Search Methods. doi:10.1007/978-0-387-40065-5
  • Multistart and the clustering of local searches: A. H. G. Rinnooy Kan and G. T. Timmer, "Stochastic global optimization methods part I: clustering methods", Mathematical Programming 39(1), 1987, pages 27-56. doi:10.1007/BF02592070
  • Evenly spread (quasi-random) points: J. H. Halton, "On the efficiency of certain quasi-random sequences of points in evaluating multi-dimensional integrals", Numerische Mathematik 2(1), 1960, pages 84-90. doi:10.1007/BF01386213
  • The minimal standard random number generator with modulus 2^31 - 1: S. K. Park and K. W. Miller, "Random number generators: good ones are hard to find", Communications of the ACM 31(10), 1988, pages 1192-1201. doi:10.1145/63039.63042

No table or text from any of these publications is reproduced, and none of their authors or publishers has reviewed or endorses this laboratory.

This laboratory is for learning. Its results hold only within its stated ranges; its lowest known value on the seeded wells is the best of six descents, not a proof, and real problems need methods, scaling and convergence checks of their own.

Results are informational and not professional advice. See our Terms of Use. Powered by SpreadsheetWeb · About · Privacy · Terms