由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - optimization using matlab function fmincon
相关主题
请教一个optimization的问题遗传算法(generic algorithm) 可以起什么用?
谁能推荐一个c++ optimization的librarymatlab参数拟合
[合集] 问个matlab的问题 (转载)Newton's method最后收敛速度很慢,求解释
[转载] 请教PDE有限差分法的CFL ConditionAsk an optimization problem (important)
OLS with constraint in Matlab?Matlab 中的 fmincon 函数
一个quadratic programming的问题,请指教! (转载)Matlab problem
c++ optimization lib 求推荐MATLAB 并行计算问题
[转载] lineariation problem....help, please谁熟悉cplex的integer programming
相关话题的讨论汇总
话题: fmincon话题: matlab话题: function
进入Computation版参与讨论
1 (共1页)
a****f
发帖数: 944
1
When you do energy minimization problems, do you use built-in matlab
function or write your own gradient descent method ( or other methods)?
I use matlab function fmincon for a constrained optimization problem, but
the parameters don't change at all after optimization, except those that did
not satisfy the constraints are changed to meet the constraints.
Does anyone know the reason?
l*****i
发帖数: 3929
2
你要是不把问题描述得更详细一些,恐怕没人能给你任何建议...

did

【在 a****f 的大作中提到】
: When you do energy minimization problems, do you use built-in matlab
: function or write your own gradient descent method ( or other methods)?
: I use matlab function fmincon for a constrained optimization problem, but
: the parameters don't change at all after optimization, except those that did
: not satisfy the constraints are changed to meet the constraints.
: Does anyone know the reason?

j**u
发帖数: 6059
3
matlab的优化做的其实挺好的,你可能需要仔细看看manual。

did

【在 a****f 的大作中提到】
: When you do energy minimization problems, do you use built-in matlab
: function or write your own gradient descent method ( or other methods)?
: I use matlab function fmincon for a constrained optimization problem, but
: the parameters don't change at all after optimization, except those that did
: not satisfy the constraints are changed to meet the constraints.
: Does anyone know the reason?

a****f
发帖数: 944
4
I want to minimize the energy E=f(p;...). p is a vector containing a set of
parameters.
I set initial values of each element in p based on some prior knowledge.
Then I use fmincon to find the optimal p that minimizes E.
Some elements in p are constrained in a range so I set the constraints
according to the syntax of fmincon.
The result is, the elements in p without constraints do not change (the same
as initial values), the elements that are initially in their constraints do
not change either, o

【在 l*****i 的大作中提到】
: 你要是不把问题描述得更详细一些,恐怕没人能给你任何建议...
:
: did

l*****i
发帖数: 3929
5
More likely your own problem than fmincon. You should read the help document
s very carefully.
Or, set display='iter' in fmincon options and see what's happening.

of
same
do
some

【在 a****f 的大作中提到】
: I want to minimize the energy E=f(p;...). p is a vector containing a set of
: parameters.
: I set initial values of each element in p based on some prior knowledge.
: Then I use fmincon to find the optimal p that minimizes E.
: Some elements in p are constrained in a range so I set the constraints
: according to the syntax of fmincon.
: The result is, the elements in p without constraints do not change (the same
: as initial values), the elements that are initially in their constraints do
: not change either, o

a****f
发帖数: 944
6
Thank you.
I tried and it only ran 2 iterations before it was terminated. The 'max
constraint' value was -6.9 in both iterations. directional derivative and
first-order optimality are both 0. Is this normal?
What does max constraint mean? should it be close to 0 at the final
iteration? I used inequality constraint, something like Ax
document

【在 l*****i 的大作中提到】
: More likely your own problem than fmincon. You should read the help document
: s very carefully.
: Or, set display='iter' in fmincon options and see what's happening.
:
: of
: same
: do
: some

1 (共1页)
进入Computation版参与讨论
相关主题
谁熟悉cplex的integer programmingOLS with constraint in Matlab?
matlab question:dual variable一个quadratic programming的问题,请指教! (转载)
very dissapointed with Cplexc++ optimization lib 求推荐
CG versus BFGS for iterative linear solvers[转载] lineariation problem....help, please
请教一个optimization的问题遗传算法(generic algorithm) 可以起什么用?
谁能推荐一个c++ optimization的librarymatlab参数拟合
[合集] 问个matlab的问题 (转载)Newton's method最后收敛速度很慢,求解释
[转载] 请教PDE有限差分法的CFL ConditionAsk an optimization problem (important)
相关话题的讨论汇总
话题: fmincon话题: matlab话题: function