이 페이지의 최신 내용은 아직 번역되지 않았습니다. 최신 내용은 영문으로 볼 수 있습니다.

문제 기반 최적화 설정

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

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

문제 기반 최적화와 솔버 기반 최적화 중에서 선택하는 방법은 먼저 문제 기반 접근법 또는 솔버 기반 접근법 중 선택하기 항목을 참조하십시오.

참고: 다항식 또는 유리식이 아닌 비선형 함수가 있는 경우 fcn2optimexpr을 사용하여 이 함수를 최적화 표현식으로 변환하십시오. Convert Nonlinear Function to Optimization Expression 항목을 참조하십시오.

기본적인 비선형 최적화 예제를 보려면 Solve a Constrained Nonlinear Problem, Problem-Based 항목을 참조하십시오. 기본적인 혼합 정수 선형 계획법 예제를 보려면 혼합 정수 선형 계획법 기본 사항: 문제 기반 항목을 참조하십시오.

함수

모두 확장

optimproblemCreate optimization problem
optimvarCreate optimization variables
showboundsDisplay variable bounds
showproblemDisplay optimization problem
showvarDisplay optimization variable
writeboundsSave description of variable bounds
writeproblemSave optimization problem description
writevarSave optimization variable description
fcn2optimexprConvert function to optimization expression
optimconstrCreate empty optimization constraint array
optimexprCreate empty optimization expression array
showconstrDisplay optimization constraint
showexprDisplay optimization expression
writeconstrSave optimization constraint description
writeexprSave optimization expression 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
solve최적화 문제 풀기
varindexMap problem variables to solver-based variable index

객체

OptimizationConstraintOptimization constraints
OptimizationExpressionArithmetic or functional expression in terms of optimization variables
OptimizationProblemOptimization problem
OptimizationVariableVariable for optimization

도움말 항목

문제 기반 절차

Problem-Based Optimization Workflow

Problem-based steps for solving optimization problems.

Optimization Expressions

Expressions define both objective and constraints.

Pass Extra Parameters in Problem-Based Approach

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

Named Index for Optimization Variables

How to create and work with named indices for variables.

Review or Modify Optimization Problems

Shows how to review or modify problem elements such as variables and constraints.

Examine Optimization Solution

How to evaluate the solution and its quality.

옵션 설정하기

옵션 설정하기

최적화 옵션 설정

Output Function for Problem-Based Optimization

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

문제 기반 최적화를 위한 팁

Create Efficient Optimization Problems

Tips for obtaining a faster or more accurate solution when there are integer constraints, and for avoiding loops in problem creation.

Separate Optimization Model from Data

To create reusable, scalable problems, separate the model from the data.

Variables with Duplicate Names Disallowed

Solution to the problem of two optimization variables with the same name.

Create Initial Point for Optimization with Named Index Variables

This example shows how to create initial points for solve when you have 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 your objective and nonlinear constraint functions share common computations in the problem-based approach.

병렬 연산

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.

문제 기반 알고리즘

Problem-Based Optimization Algorithms

How the optimization functions and objects solve optimization problems.

Supported Operations on Optimization Variables and Expressions

Lists all available mathematical and indexing operations on optimization variables and expressions.