CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Paul McKenzie

Search: Search took 4.01 seconds.

  1. Re: "The system cannot find the path specified"

    #include <iostream>
    #include <stdlib.h>
    #include <glpk.h>
    #include <armadillo>
    using namespace std;
    using namespace arma;

    void linprog1(arma::Mat<double>& A_sp, arma::Col<double>& b,
    I have...
  2. Re: "The system cannot find the path specified"

    Your new code still has issues:


    void linprog1(arma::Mat<double> B, arma::Col<double> f, arma::Col<double> OBJ)
    You're passing these parameters by value. This is not optimal, or even correct....
  3. Re: "The system cannot find the path specified"

    Not surprising. A lot of errors become magically eliminated once a vector is used -- the memory leaks clear up, and the hard-to-maintain pointers also become a moot point.

    The only thing that...
  4. Re: "The system cannot find the path specified"

    Your code is very poorly formatted, making it very hard to read. There are a lot of mistakes in that function that is giving you problems, so I will go through them.


    int* ia = new int[1+rowsb];...
Results 1 to 4 of 4





Click Here to Expand Forum to Full Width

Featured