Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
Project
A
ATFM optimization
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
Hailu, Dawit
ATFM optimization
Commits
16c677ed
Commit
16c677ed
authored
Jul 16, 2021
by
daveabiy
Browse files
Options
Downloads
Patches
Plain Diff
library for probdata_lagr.cpp
parent
cb3d9bed
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/probdata_lagr.h
+71
-0
71 additions, 0 deletions
src/probdata_lagr.h
with
71 additions
and
0 deletions
src/probdata_lagr.h
0 → 100644
+
71
−
0
View file @
16c677ed
/**@file PROBDATA_lagr.h
* @brief Problem data for Lagrangian relaxation
* @author Dawit Hailu
*
*
* This file handles the main problem data used in the Lagrangian relaxation.
*/
/*---+----1----+----2----+----3----+----4----+----d5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
#ifndef __SCIP_PROBDATA_LAGR__
#define __SCIP_PROBDATA_LAGR__
#include
"scip/scip.h"
#include
"vardata_lagr.h"
/*classifying and storing the slot and start constraints in PROBDATA
create probdata*/
SCIP_RETCODE
SCIPcreateprobdata
(
SCIP
*
scip
,
SCIP_ProbData
**
probdata
);
/*get's the ids of the variables found in the slot constraints*/
int
*
SCIPconsGetvarids
(
SCIP_ProbData
*
probdata
);
SCIP_CONS
**
SCIPgetSlotConss
(
SCIP_ProbData
*
probdata
);
int
SCIPgetNSlotConss
(
SCIP_ProbData
*
probdata
);
/* here we create the probdata, which will be called for storage of values to the data*/
SCIP_RETCODE
probdataCreate
(
SCIP
*
scip
,
/**< SCIP data structure */
SCIP_PROBDATA
**
probdata
,
/**< pointer to problem data */
SCIP_CONS
**
SlotConss
,
// SCIP_CONS** StartConss,
//SCIP_VAR** vars, /**< all exist variables */
//SCIP_CONS** conss, /**< set partitioning constraints for each job exactly one */
//int* varids, /**< array of ids of variables in the slot constraints */
//int nconss, /**< number of constraints */
int
nSlotConss
,
/**< number of slot constraints */
int
nStartConss
);
SCIP_RETCODE
probdataFree
(
SCIP
*
scip
,
/**< SCIP data structure */
SCIP_PROBDATA
**
probdata
);
SCIP_Real
SCIPconsGetMultiplier
(
SCIP
*
scip
,
SCIP_CONS
**
cons
,
SCIP_Real
subgradient
,
SCIP_Real
C
,
SCIP_Real
stepsize
,
SCIP_Bool
firstiteration
,
SCIP_Real
dualval
);
SCIP_Real
SCIPgetSubgradients
(
SCIP
*
relaxscip
,
SCIP_CONS
*
cons
,
SCIP_Real
*
solvals
);
SCIP_RETCODE
SCIPsolveiteration
(
SCIP
*
scip
,
int
nSlotConss
,
SCIP_Real
**
subgradients
,
SCIP_Real
C
,
SCIP_Real
*
stepsize
,
SCIP_Real
**
bestsolvals
,
SCIP_Real
*
upperbound
,
int
niter
);
SCIP_RETCODE
SCIPgetFeasUpperbound
(
SCIP
*
scip
,
SCIP_Real
**
solvals
,
SCIP_Real
**
upperbound
,
SCIP_Real
*
solobj
,
int
niter
);
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment