主要内容

线性编程和混合整数线性编程

用连续和整数变量解决线性编程问题

Before you begin to solve an optimization problem, you must choose the appropriate approach: problem-based or solver-based. For details, seeFirst Choose Problem-Based or Solver-Based Approach

对于基于问题的方法,创建问题变量,然后代表这些符号变量的目标函数和约束。对于基于问题的步骤,请参阅Problem-Based Optimization Workflow。要解决结果问题,使用solve

For the solver-based steps to take, including defining the objective function and constraints, and choosing the appropriate solver, seeSolver-Based Optimization Problem Setup。要解决结果问题,使用intlinprogwhen there are integer constraints, or uselinprog.当没有整数约束时。

Functions

expand all

评估 Evaluate optimization expression
findindex Find numeric index equivalents of named index variables
不可行 Constraint violation at a point
optimproblem Create optimization problem
优越的 创建优化变量
prob2struct. 将优化问题或等式问题转换为求解器
solve 解决优化问题或等式问题
intlinprog 混合整数线性编程(MILP)
linprog. Solve linear programming problems
硕士 Read MPS file for LP and MILP optimization data

Live Editor Tasks

优化 优化or solve equations in the Live Editor

Topics

Problem-Based Mixed-Integer Linear Programming

基于求解器的混合整数线性编程

基于问题的线性规划

基于求解的线性规划

模型分析线性和整数问题

基于问题的算法

Solver-Based Algorithms and Options