Any ideas?
You guys are kidding me, right?
The GSA is that Excel thing where you set up the formulae in your sheet, pick a single source variable (of possibly many), give it a low/high range, and pick a result variable and give it a target low/high range, and it iterates thru values of the source, trying to make the target fit your range. Solver? Something like that.
So, um, it’s not really hard code. But is VB.NET so, I can’t really help with ‘code’, though it should go something like:
Set up Spreadsheet
Make sure stepValue is positive (otherwise, the logic is messier)
Make sure that sourceLow + X*stepValue > sourceHigh for SOME real value of X.
Spreadsheet.sourceVar = sourceLow;
Spreadsheet.recalc();
While (Spreadsheet.resultVar < resultLow) and (Spreadsheet.resultVar > resultHigh) and (Spreadsheet.sourceVar < sourceHigh)
Perform
Spreadsheet.sourceVar += stepValue;
recalcSpreadsheet;
EndWhile
if (Spreadsheet.resultVar < resultLow) or (Spreadsheet.resultVar > resultHigh)
Value found (null)
Else
Value found (sourceVar)
That’s about it.,
_____
Peter
Smith
Well, he DID say his context was Excel.
OP says:
and i need to replicate Excel's Goal Seek function
_____
Peter
Smith
From: DotNetDe...@googlegroups.com [mailto:DotNetDe...@googlegroups.com] On Behalf Of Andrew Badera
Sent: Friday, February 01, 2008
10:14 AM
'Artificial Intelligence: A Modern Approach' by Russell & Norvig,
contains a good introduction to neural nets and also puts them in the
context of other AI techniques.
No, that's Stuart Russell, no relation to Russell Wallace :)