Main Content

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

문제 기반 최적화 설정

변수와 표현식을 사용하여 최적화 문제를 정식화하고 직렬 또는 병렬로 풀기

문제 기반 최적화에서는 최적화 변수를 만들어 이들 변수로 목적 함수와 제약 조건을 표현하거나 방정식을 나타내는 표현식을 만들고 solve를 사용하여 문제를 풉니다. 최적화 문제에 대해 수행할 문제 기반 절차를 보려면 Problem-Based Optimization Workflow 항목을 참조하십시오. 방정식 풀이에 대해서는 방정식 풀이를 위한 문제 기반 워크플로 항목을 참조하십시오.

최적화 문제를 풀기 시작하기 전에 먼저 문제 기반 접근법과 솔버 기반 접근법 중 적절한 접근법을 선택해야 합니다. 자세한 내용은 먼저 문제 기반 접근법 또는 솔버 기반 접근법 중 선택하기 항목을 참조하십시오.

참고: 다항식이나 유리식, 기본 함수(예: exp)로 구성되지 않은 비선형 함수가 있는 경우에는 fcn2optimexpr을 사용하여 해당 함수를 최적화 표현식으로 변환하십시오. Convert Nonlinear Function to Optimization Expression 항목과 Supported Operations for Optimization Variables and Expressions 항목을 참조하십시오.

기본적인 비선형 최적화 예제를 보려면 제약 조건이 있는 비선형 문제 풀기, 문제 기반 항목을 참조하십시오. 기본적인 혼합 정수 선형 계획법 예제를 보려면 혼합 정수 선형 계획법 기본 사항: 문제 기반 항목을 참조하십시오. 기본 방정식 풀이 예제를 보려면 문제 기반 접근법을 사용하여 비선형 연립방정식 풀기 항목을 참조하십시오.

함수

모두 확장

eqnproblem방정식 문제 만들기
optimproblem최적화 문제 만들기
optimvarCreate optimization variables
showDisplay information about optimization object
showboundsDisplay variable bounds
writeSave optimization object description
writeboundsSave description of variable bounds
fcn2optimexprConvert function to optimization expression
optimconstrCreate empty optimization constraint array
optimeqCreate empty optimization equality array
optimineqCreate empty optimization inequality array
optimexprCreate empty optimization expression array
showDisplay information about optimization object
writeSave optimization object description
evaluateEvaluate optimization expression
findindexFind numeric index equivalents of named index variables
infeasibilityConstraint violation at a point
prob2structConvert optimization problem or equation problem to solver form
showDisplay information about optimization object
solve최적화 문제 또는 방정식 문제 풀기
varindexMap problem variables to solver-based variable index
writeSave optimization object description

객체

EquationProblemSystem of nonlinear equations
OptimizationConstraintOptimization constraints
OptimizationEqualityEqualities and equality constraints
OptimizationExpressionArithmetic or functional expression in terms of optimization variables
OptimizationInequalityInequality constraints
OptimizationProblemOptimization problem
OptimizationVariableVariable for optimization

도움말 항목

문제 기반 절차

Problem-Based Optimization Workflow

Learn the problem-based steps for solving optimization problems.

방정식 풀이를 위한 문제 기반 워크플로

방정식 풀이를 위한 문제 기반 과정.

Optimization Expressions

Define expressions for both the objective and constraints.

Pass Extra Parameters in Problem-Based Approach

Pass extra parameters, data, or fixed variables in the problem-based approach.

Write Objective Function for Problem-Based Least Squares

Syntax rules for problem-based least squares.

Write Constraints for Problem-Based Cone Programming

Requirements for solve to use coneprog for problem solution.

Named Index for Optimization Variables

Create and work with named indices for variables.

Review or Modify Optimization Problems

Review or modify problem elements such as variables and constraints.

Examine Optimization Solution

Evaluate the solution and its quality.

옵션 설정하기

옵션 설정하기

최적화 옵션 설정

Output Function for Problem-Based Optimization

Use an output function in the problem-based approach to record iteration history and to make a custom plot.

문제 기반 최적화를 위한 팁

Create Efficient Optimization Problems

Obtain a faster or more accurate solution when the problem has integer constraints, and avoid loops when creating a problem.

Separate Optimization Model from Data

Create reusable, scalable problems by separating the model from the data.

Variables with Duplicate Names Disallowed

Learn how to solve a problem that has two optimization variables with the same name.

Create Initial Point for Optimization with Named Index Variables

Create initial points for solve when the problem has named index variables by using the findindex function.

Expression Contains Inf or NaN

Optimization expressions containing Inf or NaN cannot be displayed, and can cause unexpected results.

Objective and Constraints Having a Common Function in Serial or Parallel, Problem-Based

Save time when the objective and nonlinear constraint functions share common computations in the problem-based approach.

Effect of Automatic Differentiation in Problem-Based Optimization

Automatic differentiation lowers the number of function evaluations for solving a problem.

Supply Derivatives in Problem-Based Workflow

How to include derivative information in problem-based optimization when automatic derivatives do not apply.

Obtain Generated Function Details

Find the values of extra parameters in nonlinear functions created by prob2struct.

Output Function for Problem-Based Optimization

Use an output function in the problem-based approach to record iteration history and to make a custom plot.

병렬 연산

What Is Parallel Computing in Optimization Toolbox?

Use multiple processors for optimization.

Using Parallel Computing in Optimization Toolbox

Perform gradient estimation in parallel.

Minimizing an Expensive Optimization Problem Using Parallel Computing Toolbox™

Example showing the effectiveness of parallel computing in two solvers: fmincon and ga.

Improving Performance with Parallel Computing

Investigate factors for speeding optimizations.

문제 기반 알고리즘

문제 기반 최적화 알고리즘

최적화 함수 및 객체가 최적화 문제를 푸는 방법.

Automatic Differentiation Background

Learn how automatic differentiation works.

Supported Operations for Optimization Variables and Expressions

Explore the supported mathematical and indexing operations for optimization variables and expressions.