question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to handle cspy.res_cost object if it has variable length ?

See original GitHub issue

When considering the following constraints :

  • maximum number of stops

  • load constraints

  • duration constraints

resources extension functions are additive, so it is not necessary to define a custom REF.

But when considering time windows, a custom REF is necessary with the cspy.REF_custom method :

image

How can we handle the fact that the cumulative_res object has a variable length, as it depends on which constraints are activated (load, duration, etc.) ?

For example, we know that the monotone resource is alway first (new_res[0}+=1), but not sure how to handle the other ones.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
torressacommented, Apr 7, 2020

Works with the the version in cspy-master!!

0reactions
Kuifje02commented, Apr 7, 2020

Nice I’ll take a look !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Variable-length objects: Ever a good idea? - c++
"...to alleviate the overhead of allocating an array of Bamboo objects..." First go and measure whether this is worth doing. When you have...
Read more >
Creating variable-length tables (DEPENDING ON) - IBM
The following example shows a group item ( REC-1 ) that contains both the subject and object of the OCCURS DEPENDING ON clause....
Read more >
Script include for record producer variable length - ServiceNow
Solved: Hello, I have multiple similiar record producers that all require a common variable 'Description' to be a minimal of 251 characters. I...
Read more >
How to handle variable-length arrays in a relational database
One option is to just create a waypoints field in the booking table that stores a JSON object, which is possible because I'm...
Read more >
Fits variable lengths column can be read into a table, but not ...
Actual behavior. Exception is thrown - see full trace below. Steps to Reproduce. Generate file with variable length array for testing (my real ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found