ibmdecisionoptimization.github.io | IBM Decision Optimization on Cloud | Generator Utils library
kandi X-RAY | ibmdecisionoptimization.github.io Summary
kandi X-RAY | ibmdecisionoptimization.github.io Summary
Portal for IBM Decision Optimization on Cloud (DOcplexcloud) open source at GitHub
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ibmdecisionoptimization.github.io
ibmdecisionoptimization.github.io Key Features
ibmdecisionoptimization.github.io Examples and Code Snippets
Community Discussions
Trending Discussions on ibmdecisionoptimization.github.io
QUESTION
I've been working at a rcpsp problem using docplex in python. I consider 10 tasks with indicative costs and a worker that has to complete these tasks in 10 timeframes (can be weeks, days etc.).
One of my constraints is that the worker can perform a specific set of tasks per timeframe (worker_availability list). If I consider the example on the link below, one can restrict a worker's availability to not exceed a specific point i.e. mdl.sum(resources) <= capacity, where capacity is a fixed number.
I want to use a dynamic constraint that obeys worker_availability, i.e. at point 0 my worker can process 2 tasks, at 1 0 tasks etc.
Does anyone know how to that with docplex in python?
link: http://ibmdecisionoptimization.github.io/docplex-doc/cp/visu.rcpsp.py.html?highlight=rcpsp
...ANSWER
Answered 2021-Mar-02 at 16:25QUESTION
I'm trying to add a minimization criterion of accumulated capacity usage throughout time. The capacity usage is modeled using a cumul function, consisting of a summation of pulse() functions, where each scheduled interval would contribute to the used capacity. The max/min-capacity boundaries also vary over time, so i figured i'd model these with cumul functions as well (summation of step() functions on specified times).
I want to incorporate a fraction of a penalty (also varying over time) proportional to the fraction by which the usage exceeds the maximum capacity. My problem is that the evaluation of these cumul functions happens using height_at_start(interval, function) or height_at_end(interval, function) calls, but these min/max-boundaries, or penalty values can effectively change, independent of intervals, as well. I saw in the documentation that there is a function provided called 'get_value()', however, it seems that this is only callable on CpoStepFunctions, where the stepheight cannot be defined by a decision variable. Is there a possibility to evaluate such cumul functions at specific times?
Kind regards, Jasper
...ANSWER
Answered 2021-Feb-15 at 17:19The max/min-capacity boundaries also vary over time, so i figured i'd model these with cumul functions as well (summation of step() functions on specified times).
For min-max capacity profiles, you should use some always_in constraints. They are of the form:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ibmdecisionoptimization.github.io
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page