Decision variable
A decision variable is an unknown quantity whose value represents a choice in an optimization problem.
Optimization Algorithms: AI techniques for design, planning, and control problems
A decision variable is a variable whose value is chosen to optimize an objective function subject to constraints.
- How it is used
- Frames controllable inputs as the choices optimization methods assign while searching for strong feasible solutions.
- How deep it goes
- Defines variables, bounds, and their effects on objectives, then applies them to pricing, vehicle design, and loading examples.
- Examples
- Uses ticket price, electric-vehicle design parameters, routing choices, and cargo-bike parcel selection as concrete decision variables.
- What you can do after
- Evaluate optimization models by identifying controllable inputs, their bounds, affected objectives, and applicable constraints.
Statistics Every Programmer Needs
A decision variable is an unknown quantity whose value represents a selectable decision in an optimization problem.
- How it is used
- Models selectable alternatives within linear optimization for project prioritization and resource allocation.
- How deep it goes
- Defines binary and continuous roles, specifies bounds, and connects variables to objectives and constraints without deriving solver algorithms.
- Examples
- Uses project-feature selection, feature cost and value data, and Python bounds of `(0, 1)` for each feature.
- What you can do after
- Apply it via `scipy.optimize.linprog` by defining variable bounds alongside objectives and linear constraints.
Read how Statistics Every Programmer Needs explains decision variable →
Applied Reinforcement Learning
A decision variable is a quantity whose value is chosen by an optimization model to represent an available decision.
- How it is used
- Represents the choices a business optimization model selects to pursue its objective.
- How deep it goes
- Defines choices and illustrates them in a bakery formulation, without detailing how to solve the resulting model.
- Examples
- Uses cake production quantities, retail reorder quantities, and manufacturing production choices as examples.
- What you can do after
- Build a basic optimization formulation by representing available choices as variables alongside objectives and constraints.
Read how Applied Reinforcement Learning explains decision variable →
What to know first
- optimizationOptimization is the systematic selection or modification of values, configurations, or implementations to improve a defined objective, often subject to constraints.
Related concepts
- binary random variableincludes · A binary random variable is a random variable that can take exactly two possible values, often represented as 0 and 1.
- optimizationpart of · Optimization is the systematic selection or modification of values, configurations, or implementations to improve a defined objective, often subject to constraints.
- problem definitionpart of · A problem definition is a specification of a problem’s goals, context, and relevant constraints that guides its analysis or solution.
Questions about decision variable
What is decision variable?
A decision variable is an unknown quantity whose value represents a choice in an optimization problem.
Which Manning books explain decision variable?
Optimization Algorithms: AI techniques for design, planning, and control problems, Statistics Every Programmer Needs and Applied Reinforcement Learning.
What should I know before learning decision variable?
Manning books that teach decision variable usually introduce optimization first.
What kinds of decision variable are there?
Kinds of decision variable include binary random variable and continuous decision variable.
What is decision variable part of?
Decision variable is part of business optimization model. A formal model that represents business inputs, decisions, objectives, constraints, and resulting values or actions.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


