Quantcast
Channel: Active questions tagged constraints - Stack Overflow
Browsing all 124 articles
Browse latest View live

UVM constraint: var depends on arrange of values from code

I have a defined 256 bit array that I change from the code.I have also 8 bits rand variable.I want to make constraint that the rand var will not be randomized with values that are on in the array.for...

View Article



Modelling Capacity Constraint in CPLEX

Capacity constraintThis is the constraint that I am trying to code out.Given thatL is the set of all operations lK is the set of all workcenters kL(k) is the set of operations l processed on workcenter...

View Article

Bean Validation API, possible to dynamically indicate to validator to ignore...

I have a POJO with some fields annotated with @NotEmpty:public class SampleFormInputDTO { @NotEmpty private String textarea; private int myInt = 0; @NotEmpty private String myText = "somevalue"; public...

View Article

Applying PRIMARY KEY constraint in CockroachDB - multiple primary keys error

I have created a table in CRDB without having any PRIMARY KEY and populated my data into the table.Now that the table is created and populated with data I want to apply a constraint to make the first...

View Article

How to check if a PersistenProperty is a constrained property in groovy?

I am new to grails, and I am having a problem on how to check if a persistent property is constrained in Grails 6 :List<PersistentProperty> persistentProperties =...

View Article


In SwiftUI, what's causing "Unable to simultaneously satisfy constraints" trace?

The following app shows the above trace in the Xcode's output console:import SwiftUI@mainstruct TestApp: App { @State var isPresented = true var body: some Scene { WindowGroup { NavigationStack {...

View Article

How to apply constraint on the basis of count of properties?

I am trying to write a schema that will validate json of this type{"Steps": {"0": {"something": "something" },"1": {"something": "something" } }}with constraints:1: Steps can be empty ie {"Steps":{}}...

View Article

deferred constraint checking

Currently In our database design we have an circular reference between two entities. In other words, we have foreign keys in each table that reference each others primary key. In order to insert...

View Article


Split shift in Employee scheduling using ortools

I have scheduling Java program that uses Google OrTools for employee scheduling based on their availability. Data structure are following.Employee Shift----------- --------id idname start (Instant -...

View Article


OR-Tools CP-SAT Scheduling Constraints Issues - Java

brand new dev here, long time software product owner and designer.I am creating a scheduling algorithm for scheduling polo games. There are a few user inputs and some game constraints that will also...

View Article

Constraint Error running pg_partman.run_maintenance()

I have a partitioned table that have a partition named tablename_default and also a pool of partitions created the first time. Now tablename_default has records that go beyond the monthly partition...

View Article

Adding an one-out-of-two not null constraint in postgresql

If I have a table in Postgresql:create table Education ( id integer references Profiles(id), finished YearValue not null, started YearValue, qualification text, schoolName text, studiedAt integer...

View Article

Image may be NSFW.
Clik here to view.

How to fix grid pane not fitting underlying gridpane cell in javafx

so i have a grid pane and an image view both of size 1000. They are both placed on the game grid pane at the coordinates (0,1). They should be overlapping perfectly, but the grid pane is wider then the...

View Article


Check Constraint with current_date on mysql

This might be a horrible question, but I'm having trouble with a constraint that is supposed to prevent users to be added when they are younger than 18 years old.The constraint looks like this:alter...

View Article

Turning the negative values of a variable to be zero in Pyomo Model "glpk"

enter image description hereI have the following code in pyomo model using linear optimization "glpk"how to modify the following code so that the discharge variable only have positive or zero valuesmin...

View Article


MySQL Removing Some Foreign keys

I have a table whose primary key is used in several other tables and has several foreign keys to other tables. CREATE TABLE location ( locationID INT NOT NULL AUTO_INCREMENT PRIMARY KEY ...) ENGINE =...

View Article

How do I define the constraints of a multiple assignment problem with Pulp?

I am trying to solve an assignment problem:A supervisor can be assigned to multiple consultants according to the number of languages a supervisor and a consultant speak (the more languages they have in...

View Article


Can't locate storyboard constraints warnings in Xcode

Xcode is flagging constraint warnings up in the Issues Navigator pane, but when I select any of them, it doesn't take me to where the error should be in the storyboard / doesn't highlight any of the...

View Article

Constraint defined DEFERRABLE INITIALLY IMMEDIATE is still DEFERRED?

At what point is a DEFERRED / DEFERRABLE/ IMMEDIATE unique / primary key constraint enforced exactly?I am asking in connection with this answer.Tried with this testbed in PostgreSQL 9.1.2:CREATE TABLE...

View Article

How to validate all constraints in a MariaDB database for existing data after...

I imported data into a MariaDB database while foreign key constraint checks were disabled. Those checks were enabled afterwards. However, some data in the database seems to be corrupt in the sense that...

View Article
Browsing all 124 articles
Browse latest View live




Latest Images