Code Monkey home page Code Monkey logo

ofec_alpha's People

Contributors

changhe160 avatar cugzhouli avatar strawberry9583 avatar wangjunchen567 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ofec_alpha's Issues

call classical_orthonormalize for the orthogonalization in Suganthan's test suites

this method is used only for suganthan's suites, and we can remove the method below: classical_generate_rotation

void matrix::generate_rotation(normal *rand, double CondiNum) {
/*P. N. Suganthan, N. Hansen, J. J. Liang, K. Deb, Y.-P. Chen, A. Auger and S. Tiwari,
"Problem Definitions and Evaluation Criteria for the CEC 2005 Special Session on Real-Parameter
Optimization", Technical Report, Nanyang Technological University, Singapore, May 2005 AND KanGAL
Report #2005005, IIT Kanpur, India.*/
matrix ortholeft(m_row_size), orthoright(m_row_size), diagonal(m_row_size);
ortholeft.randomize(rand);
ortholeft.orthonormalize();
orthoright.randomize(rand);
orthoright.orthonormalize();
diagonal.diagonalize(rand, CondiNum);
ortholeft *= diagonal;
ortholeft *= orthoright;
*this = ortholeft;
m_is_det_flag = false;
}

Add the origin of this method, check it from the old platform

void matrix::diagonalize(normal * rand, double CondiNum) {
if (m_row_size != m_col_size) throw myexcept("can not be diagonal, matrix must be squre@matrix::diagonalize");
double min, max;
double *r = new double[m_row_size];
for (int i = 0; i < m_row_size; i++) r[i] = rand->next_non_standard(1., m_row_size*1.0);
min = max = r[0];
for (int i = 0; i < m_row_size; i++) {
if (min > r[i])min = r[i];
if (max < r[i]) max = r[i];
}
for (int i = 0; i < m_row_size; i++) {
for (int j = 0; j < m_col_size; j++)
if (j != i) m_row[i][j] = 0.;
else m_row[i][j] = pow(CondiNum, (r[i] - min) / (max - min));
}
delete[]r;
m_is_det_flag = false;
}

class **problem**'s member function `variable_distance`

The pure virtual member function variable_distance() of class problem has a const property which i think should be removed.
In class travelling_sales_man, variable_distance() need to change the value of mvv_solut.
I think some other member functions' const property could also be removed.

issues of num_optima_found()

int num_optima_found() const {

  1. it will cause serious error when the problem is not continuous
  2. I removed the function of num_variable_found and num_objective_found, but here you again put them back to the new platform. Something wrong here like the issue above, please remove them as well as num_optima_found, which is not a good implementation neither.
  3. Please check the .second of m_var or m_obj for what you need outside.
  4. For ur is_optimal_objective function, the logic is not totally ok: 1) if you want to check with location information in the case of location of target is known; 2) if not, perform ur current procedures.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.