minimize the cost function with two variables

hi i am working with binary and real coded ga to minimize the cost function with two variables...one of the variables i want to keep as integer form in MATLAB... is it possible to get that out put parameter as a integer form....plz ans...

7 Comments

plz more details...ktxb
José-Luis thanks for the reply... can i send the code???
Not to me personally I'm afraid. But please feel free to post it here and ask specific questions.
If your code is long I would recommend you provide a minimum working example that reproduces your problem.
hahaha... actually i am new in matlab so getting confused...anyways i am sending my code...
plz check the attached file...
I am sorry but I still don't see a specific question. I don't have time to go through your code, take an educated guess at what you might want and solve your problem for you.
Since it's only 2 variables, I would just find the minimum by exhaustive search.

Sign in to comment.

Answers (0)

Asked:

on 26 Jun 2014

Commented:

on 26 Jun 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!