Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【问题】代码中迭代收敛cost近似的疑惑 #10

Open
freeclouds opened this issue May 19, 2024 · 2 comments
Open

【问题】代码中迭代收敛cost近似的疑惑 #10

freeclouds opened this issue May 19, 2024 · 2 comments

Comments

@freeclouds
Copy link

你好,请教一下,我在分析代码过程中对于前向过程中和后向过程中对于cost下降的近似,下面两段代码不是很理解,这个近似的原理是什么呀,

        if (i < _num_steps - 1) {
            _approx_cost_decay_info.first += _k.at(i).transpose() * qu;
            _approx_cost_decay_info.second += (0.5 * _k.at(i).transpose() * quu * _k.at(i))(0);
        }
        const double approx_cost_decay = -(alpha * _approx_cost_decay_info.first + alpha * alpha * _approx_cost_decay_info.second);
        LOG(INFO) << "[Forward pass] Iter " << _iter << ", alpha " << alpha << ", actual cost decay " << actual_cost_decay << ", approx " << approx_cost_decay;
@LiJiangnanBit
Copy link
Owner

具体可以看下论文里面line search这一部分~ Synthesis and Stabilization of Complex Behaviors through Online Trajectory Optimization

@freeclouds
Copy link
Author

具体可以看下论文里面line search这一部分~ Synthesis and Stabilization of Complex Behaviors through Online Trajectory Optimization

好的,感谢回复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants