Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Reading Three Dimensional Data from a File

    Posted 12/04/08 06:59 AM

    Originally posted by: SystemAdmin


    [bill1985m said:]

    Hello,

    I am a beginner, so not knowing too much about what I have done wrong. If the array is 2d everything works just fine, but once it becomes 3D, I receive an error saying "error C2679: binary '>>': no operator found...".

    Thanks a million.
    Bill
    _____________________________
    typedef IloArray<IloArray<IloNumArray> >  MutiMatrix;

    int main(){
      IloEnv env;

      try {
        MutiMatrix cost(env);
       
        const char* filename  = "abc.dat"; 
        file >> cost;

        //...
        return 0;
        }
    }
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Reading Three Dimensional Data from a File

    Posted 12/05/08 12:58 PM

    Originally posted by: SystemAdmin


    [Didier Vidal said:]


    I'm not familiar with the IO API of Concert. But looking at the reference manual, in section optim.concert.extensions / functions, I only found a definition of the << operator for arrays . I&#039;m afraid that you have to iterate yourself if you want to produce an output.<br />

    Didier.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Reading Three Dimensional Data from a File

    Posted 12/08/08 11:48 PM

    Originally posted by: SystemAdmin


    [bill1985m said:]

    Thanks for you reply. I decided to give this concert thing up and code everything from basic... since there are not much supporting information on the web either...
    #CPLEXOptimizers
    #DecisionOptimization