Skip main navigation (Press Enter).
Log in
Toggle navigation
Community
Topic Groups
Champions
Meet the Champions
Program overview
Rising Champions
IBM Champions group
User Groups
Find your User Group
Program overview
Events
TechXchange Conference
Community events
All IBM events
Participate
IBM Community Hub
Welcome Corner
Blogging Guidelines
Member directory
Community leaders
Resources
Badge Program
IBM Support Customer Day
Log in
Decision Optimization
×
Decision Optimization
Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.
#Analytics
#DecisionOptimization
#DecisionOptimization
Group Home
Threads
58.3K
Blogs
31
Upcoming Events
0
Library
2K
Members
2.9K
View Only
Share
Share on LinkedIn
Share on X
Share on Facebook
Back to discussions
Expand all
|
Collapse all
sort by most recent
sort by thread
generate release time randomly
Junaid
08/10/20 10:12 AM
I wanna to generate release time randomly and make the trains' departure time equals to it. I write it ...
ALEX FLEISCHER
08/10/20 01:21 PM
Hi similar to https://community.ibm.com/community/user/datascience/communities/community-home/digestviewer/viewthread?GroupId=5557&MessageKey=f3516283-3fb7-437c-81bd-3247e99fdcec&CommunityKey=ab7de0fd-6f43-47a9-8261-33578a231bb7&tab=digestviewer&ReturnUrl=%2fcommunity%2fuser%2fdatascience%2fcommunities%2fcommunity-home%2fdigestviewer%3fcommunitykey%3dab7de0fd-6f43-47a9-8261-33578a231bb7%26tab%3ddigestviewer ...
1.
generate release time randomly
Like
Junaid
Posted 08/10/20 10:12 AM
Reply
Options Dropdown
I wanna to generate release time randomly and make the trains' departure time equals to it. I write it as follows and I got something wrong with assignment statement.
execute {
cplex.tilim = 120;
for (var k in orders)
{ writeln("\n origin release time is"+k.release_time);
k.release_time = Opl.rand(7); //
This is wrong.
}
}
my data file is :
// volume due_time release_time
orders = {<1, {"Beijing"},{"Hamburg"}, 24, 26, 0>,
<2, {"Yinchuan"},{"Hamburg"}, 26, 20, 0>,
<3, {"Shanghai"},{"Hamburg"}, 18, 28, 0> };
Is it because I already define the value of release time in data file? How can I change it ? I need to change the release time of every order in each iteration.
Regards
Programmer
------------------------------
Junaid -
Ainit Dubai
------------------------------
#DecisionOptimization
2.
RE: generate release time randomly
Like
ALEX FLEISCHER
Posted 08/10/20 01:21 PM
Reply
Options Dropdown
Hi
similar to
https://community.ibm.com/community/user/datascience/communities/community-home/digestviewer/viewthread?GroupId=5557&MessageKey=f3516283-3fb7-437c-81bd-3247e99fdcec&CommunityKey=ab7de0fd-6f43-47a9-8261-33578a231bb7&tab=digestviewer&ReturnUrl=%2fcommunity%2fuser%2fdatascience%2fcommunities%2fcommunity-home%2fdigestviewer%3fcommunitykey%3dab7de0fd-6f43-47a9-8261-33578a231bb7%26tab%3ddigestviewer
regards
------------------------------
ALEX FLEISCHER
------------------------------
×
New Best Answer
This thread already has a best answer. Would you like to mark this message as the new best answer?
Related Content
IBM Decision optimization solution
Walaa Wageh
Added 06/15/20
Discussion Thread
5
Using Multiobjective Optimization with Distinct KPIs
Theodore Nelson
Added 11/05/20
Discussion Thread
2
Using Multiobjective Optimization with Distinct KPIs
Theodore Nelson
Added 11/05/20
Discussion Thread
2
Using Multiobjective Optimization with Distinct KPIs
Theodore Nelson
Added 11/04/20
Discussion Thread
2
CPLEX Optimization Studio 22.1.1 is available
Rory Keeley
Added 12/13/22
Discussion Thread
9
Copyright � 2026 IBM Community. All rights reserved.
Powered by Higher Logic