필터 지우기
필터 지우기

How to use objective function in linear programming ?

조회 수: 1 (최근 30일)
Jeong_evolution
Jeong_evolution 2017년 8월 15일
댓글: Alan Weiss 2017년 8월 15일
Hi all.
I have problem used objective function.
I want to apply " f(objective function) = 3x(1) + 4x(2) + 30 "
But In document in linear programming, f = [3 4]
In here, constant can not be used.
How to solve this problem?

답변 (1개)

Torsten
Torsten 2017년 8월 15일
If you minimize 3*x1+4*x2, you automatically minimize 3*x1+4*x2+30.
So a constant in the objective function can be ignored in optimization problems.
Best wishes
Torsten.
  댓글 수: 1
Alan Weiss
Alan Weiss 2017년 8월 15일
To expand on Torsten's answer, once you find the point that minimizes 3x(1) + 4x(2), you can evaluate the objective function with or without the added 30.
Alan Weiss
MATLAB mathematical toolbox documentation

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 솔버 출력값과 반복 과정 표시에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!