# Goal Seek Optimization Solver VB.net

I need general purpose code in vb.net that finds the variable input to a black box function that returns a goal value within a search tolerance in the fewest steps possible.

For the given inputs:

goal_y = 0.876543210

search_tolerance = 0.00000001

minimum_x = 0

maximum_x = 1

x = some value between minimum_x and maximum_x

Find the value of x that makes:

return_y within search_tolerance of goal_y

where:

return_y = black_box_function(x)

Function black_box_function(ByVal x)

Dim y As Double = Sin(x)

Return y

End Function

In my planned use, the function is not Sin(x). The actual function that will be used takes a long time to compute so it is important to solve it in the fewest steps possible.

The actual function that will be used does not have any local minimums.

If the solution is outside of the range minimum_x to maximum_x, return an error message.

Taidot: tekniikka, Visual Basic

Tietoa työnantajasta:
( 36 arvostelua ) Orange, United States

Projektin tunnus: #397165

## Myönnetty käyttäjälle:

Ezio74

\$100 USD 1 päivässä
(2 Arvostelua)
3.1

## 7 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

rajtuhin1

Best Software Engineer with Best price. Lets discuss in details in PMB. Thanks and Regards : TUHIN

\$30 USD 1 päivässä
(58 arvostelua)
6.1
northwolves

\$60 USD 2 päivässä
(28 arvostelua)
4.5
nagendra1980

I am bad at math so I would require your inputs to finish this. If you think we can work together than lets do it.

\$50 USD 6 päivässä
(1 arvostelu)
1.1
cnut17

as the blackbox function has no local minimum or maximum in the search interval, then is't always increasing or decreasing. as a consequence, this function can be reversed. i've already made such a <b><i>Removed Lisää

\$80 USD 4 päivässä
(2 arvostelua)
1.0
negiroshan84