如何解决一个功能? [英] How to solve a function?

查看:71
本文介绍了如何解决一个功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个方法


双myfunction(双param1){


//代码在这里


}


Method接受1个参数,并返回一个double。它是连续的。


C sharp中的任何功能都可以帮助我找到param1

这样我的功能最小化了吗?

I have a method

double myfunction(double param1){

// code here

}

The Method takes 1 parameter, and returns a double. It is continuous.

Are tehre any functions in C sharp that will help me to find param1
such that myfunction is minimised?

推荐答案

2008年9月5日星期五03:47:26 -0700(PDT),Bernard.Mangay写道:
On Fri, 5 Sep 2008 03:47:26 -0700 (PDT), Bernard.Mangay wrote:

我有一个方法


double myfunction(double param1){


//这里代码


}


Method接受1个参数,并返回一个double。它是连续的。


C sharp中的任何函数都可以帮助我找到param1

这样我的函数被最小化了吗?
I have a method

double myfunction(double param1){

// code here

}

The Method takes 1 parameter, and returns a double. It is continuous.

Are tehre any functions in C sharp that will help me to find param1
such that myfunction is minimised?



我是唯一一个不明白他想要的人吗? :S


伯纳德,请你解释一下你想要完成什么?


David


-

。 '。 Debian维护者| http://wiki.debian.org/DavidPaleino

::'':Linuxer#334216 - | - http://www.hanskalabs.net /

`。 '''`GPG:1392B174 ---- | ---- http://snipr.com/ qa_page

` - 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174

Am I the only one who didn''t understand what he wants? :S

Bernard, would you please explain what do you want to accomplish?

David

--
. ''''`. Debian maintainer | http://wiki.debian.org/DavidPaleino
: :'' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `''` GPG: 1392B174 ----|---- http://snipr.com/qa_page
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174


9月5日,11: 47 * am,Bernard.Mangay < fcm ... @ googlemail.comwrote:
On Sep 5, 11:47*am, "Bernard.Mangay" <fcm...@googlemail.comwrote:

我有一个方法


double myfunction(double param1){


//这里的代码


}


方法需要1个参数,并返回一个双。 *它是连续的。


C sharp中的任何函数都可以帮助我找到param1

这样我的函数最小化了吗?
I have a method

double myfunction(double param1){

// code here

}

The Method takes 1 parameter, and returns a double. *It is continuous.

Are tehre any functions in C sharp that will help me to find param1
such that myfunction is minimised?



当然不是用C#语言,但是有一个新的MS库,

可以帮到你:
< a rel =nofollowhref =http://code.msdn.microsoft.com/solverfoundationfs1target =_ blank> http://code.msdn.microsoft.com/solverfoundationfs1


我假设你只是在寻找当地的最低价格?

非常容易提出一个连续的函数,在任何理智的时间长度内很难找到最小的




Jon

Certainly not in C# as a language, but there''s a new MS library which
might help you:
http://code.msdn.microsoft.com/solverfoundationfs1

I assume you''re only looking for a local minimum? It''s pretty easy to
come up with a continuous function which would be hard to find the
minimum for programmatically in any sane length of time.

Jon


9月5日,11:49 * am,David Paleino< dDOTpale ... @ gmail.co-mwrote:
On Sep 5, 11:49*am, David Paleino <dDOTpale...@gmail.c-o-mwrote:

我是唯一一个不明白他想要的人吗? :S
Am I the only one who didn''t understand what he wants? :S



可能不是,但我很确定我理解它。

Possibly not, but I''m pretty sure I understand it.


Bernard,你能解释一下你想要完成什么吗?
Bernard, would you please explain what do you want to accomplish?



考虑一个函数,如x = x *(x-1)。当x为1/2时,它具有最小值

。我相信伯纳德试图获得该源值

(1/2)给出了计算任何

源的目标值的方法。


Jon

Consider a function such as x =x*(x-1). That has a minimum value
when x is 1/2. I believe Bernard was trying to get that source value
(1/2) given the method which would compute the target value for any
source.

Jon


这篇关于如何解决一个功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆