Topic
2 replies Latest Post - ‏2009-07-22T16:34:37Z by SystemAdmin
SystemAdmin
SystemAdmin
151 Posts
ACCEPTED ANSWER

Pinned topic Charts

‏2009-07-17T23:09:32Z |

[shadi said:]

hi,
i have the following tupleset:

tuple GlobalDutyDetails_T{
int DutyIndx;
int NbRegularTrips;
float DrivingDistance;
int DrivingTime;
int NbServiceTrips;
float ServiceDrivingDistance;
int NbEmptyTrips;
float EmptyDrivingDistance;
int EmptyDrivingTime;
int Duration;
int BreakTime;
float DrivingCost;
int busCategory;
int DepotStart;
int DepotEnd;
};
{GlobalDutyDetails_T}GlobalDutyDetails=...;

where GlobalDutyDetails is the last result of the optimization, and it will include the details of the duties.


my question is :
how i can create a simple chart with:
x-axis: DutyIndx (only to show the duty index in the x-axis and not all the tuple).
y-axis: DrivingCost.



Note: i can create like this chart but in the x-axis i have all the details of the tuple and not only the first field (DutyIndx).


thanks in advanced
Kshieboun Shadi
Updated on 2009-07-22T16:34:37Z at 2009-07-22T16:34:37Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    151 Posts
    ACCEPTED ANSWER

    Re: Charts

    ‏2009-07-21T21:29:45Z  in response to SystemAdmin

    [alain.chabrier said:]

    Hi,

    the indexes need to be sets themself.

    You might have to do a set of Duty indexes

    {int} dutyindexes = ...;

    and then your tuple declaration has to be :

    {GlobalDutyDetails_T}GlobalDutyDetails with DutyIndx in dutyindexes =...;

    Then you should be able to use DutyIndx for an index.

    Alain
    • SystemAdmin
      SystemAdmin
      151 Posts
      ACCEPTED ANSWER

      Re: Charts

      ‏2009-07-22T16:34:37Z  in response to SystemAdmin

      [shadi said:]

      dear Alain,
      i tried the following code before the main block in my multimodel project:

      tuple GlobalDutyDetails_T{
      int DutyIndx;
      int NbRegularTrips;
      float DrivingDistance;
      int DrivingTime;
      int NbServiceTrips;
      float ServiceDrivingDistance;
      int NbEmptyTrips;
      float EmptyDrivingDistance;
      int EmptyDrivingTime;
      int Duration;
      int BreakTime;
      float DrivingCost;
      int busCategory;
      int DepotStart;
      int DepotEnd;
      };
      {GlobalDutyDetails_T}GlobalDutyDetails=...;

      subject to
      {
       
      }

      {int} dutyindexes = {lt.DutyIndx | lt in GlobalDutyDetails};

      {GlobalDutyDetails_T}GlobalDutyDetails2 with DutyIndx in dutyindexes=GlobalDutyDetails;


      but i get the following error:
      Error mapping element GlobalDutyDetails2 : ilog.concert.IIoException: Can not set reference on an non empty Set. Please contact the technical support for this application.


      what is the problem with this???

      thanks in advanced
      Kshieboun Shadi