Course contentsShow

Module 08 · Lesson 1

Constraints and Opportunities

Mission planning matches requests to opportunities without breaking constraints. This lesson classifies both, separates hard limits from preferences, and models onboard storage along a timeline.

8 minute readUpdated November 23, 2026

Learning objectives

After this lesson you will be able to:

  • Describe planning as matching requests to opportunities under constraints
  • Classify the main opportunity and constraint types and distinguish hard constraints from soft ones
  • Model a depletable resource such as onboard storage along a timeline and detect a violation

Planning as matching

The foundation course described planning as turning requests and constraints into a conflict-free timeline. This module looks at how that is done in software, and this lesson defines the inputs precisely.

Planning is a matching problem. On one side are requests: things somebody wants done, such as an image of a port, a calibration or a software upload. On the other side are opportunities: time windows in which each request could be carried out. A plan assigns requests to opportunities. Constraints decide which assignments are allowed.

A familiar comparison is a job scheduler with resource limits. The difference is that the time slots are not chosen by the scheduler. They are dictated by orbital geometry, they differ for every request, and many are only a few minutes long.

Opportunities

Opportunities are computed from the predicted orbit, not chosen.

Target access windows. An access window is the interval in which the spacecraft can observe a target within its pointing limits. For an imaging satellite in low Earth orbit, a window over one ground target typically lasts from tens of seconds to a few minutes, and the same target may not be accessible again for a day or more. Lighting matters as well. An optical image needs the target in daylight.

Ground contacts. A contact is the interval in which a ground station can see the spacecraft above its minimum elevation. Contacts are the opportunities for downlink, for command upload and for real-time activities. They must also be booked, because antennas are shared.

Eclipse and sunlight periods. Sunlight is the opportunity to generate power. Eclipse is the period in which everything runs from the battery. Some instruments prefer one or the other.

Each opportunity carries attributes that affect its value, such as the viewing angle to a target or the maximum elevation of a pass. Two opportunities for the same request are rarely equal.

Constraints

Constraints are the limits every plan must respect.

ConstraintWhat it limitsTypical model
Power and energyBattery charge must stay above a minimum, and loads must not exceed what the power system can deliverA battery level that drains under load and refills in sunlight
Onboard storageRecorded data must fit until it is downlinkedA volume that fills while recording and drains during contacts
ThermalEquipment must cool between usesA maximum operating time per orbit, or a minimum gap between uses
Pointing and slew timeThe spacecraft points one way at a time and needs time to turn and settleA minimum gap that depends on the angle between successive targets
Keep-out zonesInstruments and sensors must not point near the Sun or other bright bodiesA minimum angle between the instrument axis and the Sun
Operational rulesTeam and safety rules, such as no maneuver outside a contactExplicit rules checked against the timeline

From a software point of view, these fall into three patterns.

  • Depletable resources change over time and must stay within bounds. Battery charge and storage are the main examples. They are modeled by integrating rates along the timeline.
  • States must hold a required value while an activity runs. An instrument must be on and warmed up before it records. The spacecraft must be pointed at the station during a downlink.
  • Temporal relations require gaps or orderings. A slew between two targets takes time that grows with the angle between them, plus settling time before the image is sharp.

A keep-out zone shows why geometry enters the constraint side as well. A telescope pointed too close to the Sun can be damaged, so the angle between its axis and the Sun must stay above a threshold, including during the slew between two permitted directions.

Hard and soft constraints

A hard constraint must never be violated. A plan that breaks one is invalid. Storage capacity, battery limits and Sun avoidance are hard.

A soft constraint is a preference. Images taken close to directly overhead are sharper. A team may prefer two contacts a day at one particular station. Soft constraints are expressed as scores or penalties, and the scheduler trades them against each other.

The distinction is a design decision with consequences. A preference coded as hard makes the scheduler reject good plans. A physical limit coded as soft lets the scheduler trade safety for a better score. Hard constraints normally include margin: the plan is held to 80 percent of storage, for example, because the model is not perfect.

Where the inputs come from

A planning system computes little of this itself. It consumes products from other systems.

  • Flight dynamics supplies the predicted orbit, and from it the access windows, station visibility times and eclipse entry and exit times. Predictions degrade with time, so products are refreshed regularly and a plan built on old ones may have its windows in the wrong place by seconds or more.
  • The contact plan lists the passes actually booked, which is a subset of the passes that are geometrically possible.
  • Customer requests arrive with targets, time ranges, priorities and quality requirements.
  • Spacecraft state comes from telemetry: how full storage is now, the battery's present capacity, which units are healthy.
  • Models and rules come from the engineering team and are configuration-controlled, like the telemetry database.

Each input has a version and an age. Treating them as versioned dependencies of the plan, and recording which versions a plan was built from, is the planning equivalent of a reproducible build.

A practical example: three images and one pass

An imaging satellite records at 400 megabits per second, so a 60-second image produces 24,000 megabits. Storage holds 64,000 megabits, or 8 gigabytes. A downlink pass delivers 150 megabits per second for 480 seconds.

The planner wants three images before the next pass. The model below steps along the timeline, integrating the net data rate between activity boundaries.

// Times in seconds from the start of the plan. Rates in megabits per second:
// positive while recording, negative while downlinking.
interface Activity { name: string; start: number; end: number; rateMbps: number }

function checkStorage(activities: Activity[], capacityMbit: number, initialMbit = 0) {
  const events = activities
    .flatMap((a) => [{ t: a.start, dRate: a.rateMbps }, { t: a.end, dRate: -a.rateMbps }])
    .sort((x, y) => x.t - y.t);
  let stored = initialMbit; // megabits
  let rate = 0;             // net fill rate, megabits per second
  let lastT = 0;
  let peak = stored;
  let overflowAt: number | null = null;
  for (const e of events) {
    const next = stored + rate * (e.t - lastT);
    if (overflowAt === null && next > capacityMbit) {
      overflowAt = lastT + (capacityMbit - stored) / rate; // rate > 0 here
    }
    stored = Math.max(0, next); // cannot downlink data that is not there
    peak = Math.max(peak, stored);
    rate += e.dRate;
    lastT = e.t;
  }
  return { peakMbit: peak, overflowAt, finalMbit: stored };
}

const CAPACITY = 64000; // megabits (8 gigabytes)
const image = (name: string, start: number) => ({ name, start, end: start + 60, rateMbps: 400 });
const pass = (name: string, start: number) => ({ name, start, end: start + 480, rateMbps: -150 });

const planA = [image("A", 600), image("B", 1500), image("C", 2400), pass("X", 3600)];
const planB = [image("A", 600), image("B", 1500), pass("X", 3600), image("C", 6300)];
console.log(checkStorage(planA, CAPACITY));
console.log(checkStorage(planB, CAPACITY));

The output shows the problem and the fix.

{ peakMbit: 72000, overflowAt: 2440, finalMbit: 0 }
{ peakMbit: 48000, overflowAt: null, finalMbit: 24000 }

Plan A overflows 40 seconds into the third image, at 2,440 seconds. The model keeps counting past capacity so that the planner can see how large the shortfall is. Plan B moves the third image to an opportunity after the pass. The peak falls to 48,000 megabits, which is 75 percent of capacity, and the last image waits on board for a later pass.

A production model would add margin, start from the storage level reported in telemetry, and account for a pass that delivers less than predicted. The structure is the same: a resource, a timeline and a bound.

From checking to choosing

This lesson checked plans that somebody had already proposed. The harder problem is choosing which requests to accept and where to put them when not everything fits. The next lesson surveys how schedulers make that choice.

Key takeaways

  • Opportunities are computed from geometry - when a target, a ground station or sunlight is available. Constraints are limits that every plan must respect.
  • Most constraints are resources that fill or drain over time, states that must hold, or minimum gaps between activities.
  • A hard constraint makes a plan invalid. A soft constraint makes it worse. Mixing the two up produces either unsafe plans or needlessly empty ones.
  • Planning inputs come from other systems - flight dynamics products, the contact plan and customer requests - and a plan is only as current as its inputs.

Knowledge check

Check your understanding. These questions are not graded and you can retry as often as you like.

Question 1 of 3· Select all that applyA customer asks for one more image on an orbit that already has two planned. Which of these must the planning system check before accepting it? Select all that apply.
Question 2 of 3· Select one answerWhich of these is best modeled as a soft constraint?
Question 3 of 3· Select one answerA storage model checks the stored volume only at the start and end of each activity. Why is that enough when every activity has a constant data rate?

0 of 3 questions answered.

Glossary

Opportunity

A time window, computed from orbital geometry, in which an activity is possible, such as a target being in view or a ground station being in contact.

Access window

The interval during which a spacecraft can observe a given target within its pointing limits.

Hard constraint

A limit that must never be violated. A plan that breaks one is invalid, whatever else it achieves.

Soft constraint

A preference that a plan should satisfy where possible. Violating it reduces the quality of the plan but does not make it invalid.

Keep-out zone

A range of directions in which an instrument or sensor must not point, most commonly a cone around the direction of the Sun.

Slew

A rotation of the spacecraft from one pointing direction to another. It takes time that depends on the angle and on how fast the spacecraft can turn.

References and further reading

Finished this lesson?

Loading your progress…

Lesson version 1.0.0.