How to use CpModel.AddCumulative function with new 9.8.3296 OrTools C# version #4104
Replies: 2 comments 1 reply
-
the 1 param version is not available in python. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I have no code.
Create the constraint.
https://or-tools.github.io/docs/dotnet/classGoogle_1_1OrTools_1_1Sat_1_1CpModel.html#ae0f6c541b665cf5d5458e3daed924d40
Add all demands 1 by 1.
https://or-tools.github.io/docs/dotnet/classGoogle_1_1OrTools_1_1Sat_1_1CumulativeConstraint.html
or all of them with the AddDemands
Laurent Perron | Operations Research | ***@***.*** | (33) 1 42 68 53
00
Le mer. 28 févr. 2024 à 18:01, JharPaat ***@***.***> a écrit :
… Actually I am using C# Version.
I have corrected the Title.
@Iperron Could you please provide some examples for C# version with 1
Parameter ?
public CumulativeConstraint AddCumulative(C capacity)
—
Reply to this email directly, view it on GitHub
<#4104 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUPL3KSX5HQ7YBS7B2WMR3YV5PG7AVCNFSM6AAAAABD6MW5OWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DMMRRGEYTE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi my question same as previous issue.
I would like to know how to use CpModel.AddCumulative function (with only 1 parameter) with new 9.8.3296 OrTools version.
#3753
Old question:
Originally posted by @kevinl412 in #3753
Beta Was this translation helpful? Give feedback.
All reactions