Matlab optimization problem

Avg Bid (USD)
Project Budget (USD)
$30 - $250

Project Description:
I have a optimization problem to solve in Matlab.

A lot of the work is already done for this first part. Biggest issue is to correct mistakes.

I and sending you the photos of the problem atached and also the code i have done so far.

I will explain here exactly what has to be done(i dont know a lot of matlab so may be hard to explain sorry)

The point os to optimize the target function using the function fmincon

The decision valiable is a vector X that includes 4 vector inside Q1 Q2 V1 and V2. Q1 and A2 are constant. V1 and V2 are calculated.

I will explain the functions i already did (some have mistakes):

calcX0 - calculates the initial vector that will be used to optimize
parteX - divides the entrance vector X in the 4 subvectors to be used in other functions
juntaX - joins the 4 sub vectors back to X
dados - inicializes the given values for the problem
calcr - calculates the value of R that depends on H and deltaH (giving errors)
calch - calculates h
calcdeltah- calculates delta h
LB are the lower bounds from the restrictions
UB are the upper bounds for the restrictions
restricoes is where all the restrictions of the problem should be

The problem is about a hidro electric power station so thats why there are 2 different stations (and 2 R's and delta h and so on)
Completo is still empty but thats where i should calculate the target of the problem and optimize it using the function fmincon

Fmincon final should be something like this:

The info and code is atached as problema1.rar
If you have any doubts feel free to contact me.

This is the first step of a bigger problem and i am willing to pay well for someone that will be interested in doing the full project if this first step goes well.

Thanks a lot

Skills required:
Matlab & Mathematica
Additional Files: Problema+1.rar
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

Hire bchandra1955
$ 247
in 3 days
$ 1894
in 21 days
$ 250
in 15 days
$ 154
in 7 days
Hire DrMan
$ 244
in 10 days
$ 140
in 15 days
$ 333
in 3 days
$ 155
in 3 days
Hire freelanmohan7
$ 166
in 2 days
Hire ntltech
$ 166
in 7 days